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

Message not being deleted after worker's sucess #2

Open
guyshechter opened this issue May 15, 2013 · 4 comments
Open

Message not being deleted after worker's sucess #2

guyshechter opened this issue May 15, 2013 · 4 comments

Comments

@guyshechter
Copy link

Gemfile:

gem "delayed_job", "3.0.5"
gem "delayed_job_ironmq", "1.0.0"

delayed_job.rb:

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.

@carimura
Copy link

Thanks Guy. We're on this.

cc @thousandsofthem @iced @treeder

@thousandsofthem
Copy link

Looking at

@thousandsofthem
Copy link

Bug was fixed, we'll release new gem version today

@thousandsofthem
Copy link

@guyshechter gem version 1.0.1 released, please test it out

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

No branches or pull requests

3 participants