-
Notifications
You must be signed in to change notification settings - Fork 482
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
Schedule hooks do not behave as expected or documented #679
Comments
jweir
added a commit
to jweir/resque-scheduler
that referenced
this issue
Jul 8, 2019
https://github.com/resque/resque-scheduler#hooks enqueue_at works as documented, but schedules enqueued from a config have not been calling the before/after schedule hooks. fixes resque#679
jweir
added a commit
to jweir/resque-scheduler
that referenced
this issue
Jul 8, 2019
https://github.com/resque/resque-scheduler#hooks enqueue_at works as documented, but schedules enqueued from a config have not been calling the before/after schedule hooks. fixes resque#679
PR with fix @ #681 |
codealchemy
pushed a commit
to codealchemy/resque-scheduler
that referenced
this issue
Oct 16, 2024
https://github.com/resque/resque-scheduler#hooks enqueue_at works as documented, but schedules enqueued from a config have not been calling the before/after schedule hooks. fixes resque#679
codealchemy
pushed a commit
to codealchemy/resque-scheduler
that referenced
this issue
Oct 30, 2024
https://github.com/resque/resque-scheduler#hooks enqueue_at works as documented, but schedules enqueued from a config have not been calling the before/after schedule hooks. fixes resque#679
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/resque/resque-scheduler#hooks
My reading of the
before_schedule
andafter_schedule
hooks is they should be called around when job is about to be put on the queue viaenqueue_from_config
.However the
{before,after}_schedule
methods are only called when a job is enqueued viaenqueue_at
,enqueue_in
, orenqueue_at_with_queue
.This could be my misreading of the documentation, in which case the documentation could be cleared up. But it seems that a callback called
before_schedule
would be associated with acron
schedule job.See also #650
The text was updated successfully, but these errors were encountered: