-
Notifications
You must be signed in to change notification settings - Fork 480
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
Job doesn't run from static schedule #613
Comments
@Babdus Any chance this is using a different Redis instance or database? Could you try running |
I have only one Redis instance with one database, so it can't be the case.
But nothing ever happened. (I've put code in this TestCronJob for retrying failed jobs) |
This issue is unrelated to resque-scheduler, as clearly the job is being queued into the right place and resque is running it. With that said, I think your problem is |
I have the same issue. It seems that resque-schedule does not play with ActiveJob adapter. When I enqueue job manually, I get the following output:
vs resque-schedule from static schedule:
|
I'm seeing the same issue. I did get it to work with these settings, as an ugly workaround
|
@sevos Any chance you can run that with the |
I was having the exact same problem as @sevos and @Babdus. Using the following worked for me:
|
@TimFletcher solution work for me too |
resque-scheduler still doesn't work with ActiveJob out of the box (despite the issue being closed). Resque itself does work with ActiveJob out of the box. Update: There is a gem that works around the compatibility issue: https://github.com/JustinAiken/active_scheduler |
@TimFletcher solution worked for me too. Thanks! |
The solution from @TimFletcher worked for me also. I tried the active-scheduler gem but I ran in to issues with resque-scheduler not initialising correctly. |
@TimFletcher your code worked for me. Thanks. |
@TimFletcher worked for me too. Cant believe that's still happenning ;-; |
If instead of a scheduled job you're using time_to_send = Time.now + 120
Resque.enqueue_at_with_queue(
:mail_updates,
time_to_send,
ActiveJob::QueueAdapters::ResqueAdapter::JobWrapper,
{
job_class: SubscriptionsJob,
job_id: SecureRandom.uuid,
queue_name: :mail_updates,
priority: nil,
arguments: [{arg1: "value", another_arg: "value2"}],
locale: 'en'
}
) |
Hello,
I have read similar issues but nothing helped me.
Here is my lib/tasks/resque.rake file:
And resque_schedule.yml:
And this is test_cron_job.rb:
In command line:
and
The job is being queued, but never run (I tested on several jobs, not just putting something):
Can anybody help me find out what is going wrong?
The text was updated successfully, but these errors were encountered: