Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic scheduling seems to be incompatible scheduler rake task #373

Open
reagleton opened this issue Feb 21, 2014 · 1 comment
Open

Dynamic scheduling seems to be incompatible scheduler rake task #373

reagleton opened this issue Feb 21, 2014 · 1 comment

Comments

@reagleton
Copy link

If you set resque-scheduler to be dynamic and create a job it works perfectly well without having to run the scheduler rake task, e.g.

   Resque::Scheduler.load_schedule!
   Resque::Scheduler.load_schedule_job('job_name', {:class => 'MyJob', 'every' => "60s"})

If you then start the scheduler rake task, this job will stop running until such time as the rake task is exited. It then resumes its normal schedule.

Any delayed jobs added via Resque.enqueue_at will not run until the rake task is started.

Not sure if this is related or a separate issue but if you want to run a regular delayed job, this will only run if the scheduler rake task is already started. If you schedule the job (and it does appear under the Resque Schedule tab) and then start the rake task, the jobs will sit in the schedule waiting to be queued even if the time they should have run is passed (they can be enqueued manually). Once these "stale" jobs are removed or queued, any delayed jobs created after the rake task was started will queue as per normal.

@meatballhat meatballhat added this to the Release v3.0.0 milestone Feb 21, 2014
@meatballhat meatballhat removed this from the Release v3.0.0 milestone May 24, 2014
@bugant
Copy link
Member

bugant commented Jun 24, 2014

@reagleton which version of resque-scheduler are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants