Pergunta

I am wondering if the workers have any kind of time limit of processing a job. I haven't found any info on the docs, so I would like to know:

Is there any time limit (timeout) for a Resque worker when processing a job in Heroku?

Foi útil?

Solução

No, there isn't, as long as your architecture or infrastructure don't impose it.

You must be very careful then. If your job can fall into an infinite loop, your queue will stuck.

It's also generally suggested to have minimum a couple of workers. Even better, consider to have different queues, one for slow or standard jobs, another for priority jobs.

Talking about Heroku (the original question did not mention it), there is currently no timeout for workers (only for web dynos). However Heroku may kill your jobs in some cases, such as after a deploy or restart.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top