You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After server restart, nothing happens, the jobs are not scheduled.
Though, if I start an external process like bundle exec good_job start it works just fine and executes the schedule, so configuration seems to be valid.
My webserver is Puma, but there is not WEB_CONCURENCY enabled, and I'm still testing on dev.
Is it expected that in such setup we should cat GoodJob.restart explicitly somewhere? As I didn't find anything regarding this in README.
The text was updated successfully, but these errors were encountered:
Oh, I think I've found the reason. Good job starts cron processing only after at least one request is served by Puma.
Until that it does nothing, and it's reproducible every time. Is it expected behavior?
Default Puma config has this, so I was assuming Good Job should be preloaded right from the start.
Because of Rails deferred autoloading, jobs enqueued via the rails console may not begin executing on a separate server process until the Rails application is fully initialized by loading a web page once.
It happens not only for separate server process, but the main as well though.
Hi! Thanks for the great library! I'm trying to setup it, but seems like missing some essential configuration detail, maybe you can help.
I have a configuration to setup a cron job that runs every minute. The configuration block for GoodJob looks like this:
After server restart, nothing happens, the jobs are not scheduled.
Though, if I start an external process like
bundle exec good_job start
it works just fine and executes the schedule, so configuration seems to be valid.My webserver is Puma, but there is not WEB_CONCURENCY enabled, and I'm still testing on dev.
Is it expected that in such setup we should cat
GoodJob.restart
explicitly somewhere? As I didn't find anything regarding this in README.The text was updated successfully, but these errors were encountered: