sidekiq-scheduler is a good option if you’re using Sidekiq. It’s better than cron in many ways - not least because you can monitor jobs in the Sidekiq web UI.
DO has predeploy and postdeploy job types. Predeploy is equivalent to the Fly release command in fly.toml. This will run after a successful build, but before the deployment is released.
Fly has no equivalent to postdeploy, but most apps are OK with predeploy.
When i add this to fly.toml, scheduler = "IS_SCHEDULER=true bundle exec sidekiq"
throw error too. System did’t know flag IS_SCHEDULER. I would like process ‘scheduler’ run on one machine.
scheduler = "bundle exec sidekiq -C config/scheduler.yml"
in [processes] can working now. It’s great, so scheduler can run only one machine, other worker process can scale freely.