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
Delayed::Worker.configure do |config|
# optional params:
config.available_priorities = [-1,0,1,2] # Default is [0]. Please note, each new priority will speed down a bit picking job from queue
config.queue_name = 'myqueue' # Specify an alternative queue name
config.delay = 0 # Time to wait before message will be available on the queue
config.timeout = 5.minutes # The time in seconds to wait after message is taken off the queue, before it is put back on. Delete before :timeout to ensure it does not go back on the queue.
config.expires_in = 7.days # After this time, message will be automatically removed from the queue.
end
From my controller, I call delay on a model's method:
@device.delay.cache_data
Heroku's worker log shows that it was successful, but the message doesn't get deleted from the queue:
[Worker(host:28d764ae-a91c-4786-b599-793151a95c9c pid:2)] Device#cache_data completed after 1.2073
...
[Worker(host:28d764ae-a91c-4786-b599-793151a95c9c pid:2)] 1 jobs processed at 0.6503 j/s, 0 failed ...
and the job gets run again after the timeout elapses.
The text was updated successfully, but these errors were encountered:
Gemfile:
delayed_job.rb:
From my controller, I call delay on a model's method:
Heroku's worker log shows that it was successful, but the message doesn't get deleted from the queue:
and the job gets run again after the timeout elapses.
The text was updated successfully, but these errors were encountered: