Closed stevepm closed 10 years ago
After reading an earlier issue with similar problems(https://github.com/brandonhilkert/sucker_punch/issues/44), I added sleep 1
to my rake file after I queue the job and it seems to be working...
Glad to hear you got it working!
Hi,
I'm having trouble running a rake task that calls a sucker punch job:
I'm testing to see if it works in the production environment, as it wasn't working in the development environment either. Rake Task:
RAILS_ENV=production DATABASE_URL=postgres://localhost/popular_gems_development rake gem:update_all
Output:
Starting - Starting 80legs Updating data for -..... Updating data for 80legs..... Ending - Ending 80legs Couldn't cleanly terminate all actors in 10 seconds!
The code in the rake task:
If I run that same code in the rails console, it works fine, going through each gem in my database and updating each of them.
The code in the job: