Hi Craig, Delayed Job works quite nicely... been using it for a few things.
I'd recommend capturing the failed jobs (a non-default configuration setting) and then finding out when they fail. The error message and exception trace is captured in a database table column called 'last_error'. Delayed Job will retry failed jobs about 5 or 6 times by default I think. Other than that, its pretty easy to use and get set up. In the console, you can use Delayed::Job.count, Delayed::Job.delete_all, etc to refer to the database records like any other ActiveRecord object. There was one gotcha - I think I had to pre-load the job classes in delayed_job_config.rb: # Add any custom job classes here! require Dir.getwd + '/app/models/userload_job.rb' require Dir.getwd + '/app/models/sq_job.rb' require Dir.getwd + '/app/models/friendcount_job.rb' >From memory, if you don't do this, then no job is created and no error is logged anywhere when the job fails to be created. The downside of this is that you typically have to restart the Rails server if you change the code in these classes. Cheers, Nigel On Fri, May 18, 2012 at 2:06 PM, Craig Read <[email protected]> wrote: > Thanks for the responses everyone! > > Good to see my question raised some controversy with gem selection too. ;) > > As an aside, I'm going to implement delayed job for pulling some stats > down from a 3rd party API into my app. > I'm hosting it on Heroku, and it seems hirefire is the go for managing the > dynos. > > Does anybody have any experience with this, thoughts to share, traps to > avoid, etc? > > Cheers, > > Craig... > > -- > Craig Read > > @Catharz > https://github.com/Catharz > http://stackoverflow.com/users/158893/catharz > > -- > You received this message because you are subscribed to the Google Groups > "Ruby or Rails Oceania" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rails-oceania?hl=en. > -- http://www.whossingle.net - check out who's available, engaged or taken amongst your friends and their friends http://www.partneredup.com - a new way to meet people online and offline *Dr Nigel Sheridan-Smith PhD BE* Mob: 0403 930 963 Email: nigel --AT-- partneredup.com LI: http://www.linkedin.com/in/nsheridansmith -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
