bkeepers / qu

a Ruby library for queuing and processing background jobs.
MIT License
506 stars 50 forks source link

Add ability for a job to timeout #20

Closed mindscratch closed 10 years ago

mindscratch commented 13 years ago

If a job is scheduled that is taking a long time or is hung up for some reason, it would be nice if Qu could stop/kill the job and then let some hook/callback be invoked so we could know it happened. At that point we could log a message, raise an exception, requeue the job, etc.

jnunemaker commented 10 years ago

For now I would recommend just using Timeout.timeout in your job and handling this on your own.