I set up CloudFlare Logpush on the worker and was ingesting the worker logs to my local Elastic instance for statistics and log analysis. Was working great.
Restarted the system the worker was on, the worker re-deployed, CloudFlare Logpush is now disabled.
Looks like the worker re-deploys its infrastructure every time the service starts. Because of this, worker settings do not persist across service restarts.
Proposing one of the following solutions:
- Workers only re-deploy when necessary (would have to figure out how to tell that?) and can use existing deployments, so customizations to the workers (and workers themselves?) persist across service restarts
- Service reads existing worker settings prior to cleanup and sets them back after re-deployment
- Service provides worker options management in config yml
I'm sure there are other ways to tackle this, these were just the first things that came to mind.
This impacted me for Logpush settings, but this probably impacts other worker settings: CPU limit, usage model, placement, etc.