Destroying all delayed job in rails

Rahul Tapali picture Rahul Tapali · Mar 13, 2012 · Viewed 24.5k times · Source

I am using collectiveidea for rails 2.3.8. I am creating array of delayed jobs to perform some tasks, after some time I want to destroy all the delayed jobs which are running. If anyone know the way to do this please help me.

Answer

Lee Jarvis picture Lee Jarvis · Mar 13, 2012

You can invoke rake jobs:clear to delete all jobs in the queue.