A Blog on Ruby on Rails, Social Networking, Digital Marketing, Politics, and Other Thoughts.

Tag Cloud

Restart Workling

Posted: February 7th, 2010 | Author: monolith | Filed under: Uncategorized | Tags: | No Comments »

I just spent an hour trying to debug a new Workling worker I just added to my application.  As far as I could tell there was nothing wrong with the code, everything SHOULD have been working… but nothing was happening… my new worker was not working!  Silly silly silly.

First, remember to visit the Workling page on Github.

Second, when you want to debug a worker, remember to call the debugger at the end of the line where you call it (you can call it from the console):

--debugger

Lastly, and this was my problem….

Remember to restart Workling after adding a new worker!

RAILS_ENV=development script/workling_client restart

(make sure you do this in production as well)

RAILS_ENV=production script/workling_client restart

Leave a Reply