Hey,Does delayed_jobs take signals? I would love to tell DJ to finish processing the current jobs, but stop taking new ones, so I can deploy a new version of the code without abruptly `SIGTERM` stopping the current jobs being processed.
--
---
You received this message because you are subscribed to the Google Groups "delayed_job" group.
To unsubscribe from this group and stop receiving emails from it, send an email to delayed_job+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The standard signals do that already.David
On Tue, Sep 11, 2018 at 4:48 PM, Pablo Cantero <pabl...@gmail.com> wrote:
Hey,Does delayed_jobs take signals? I would love to tell DJ to finish processing the current jobs, but stop taking new ones, so I can deploy a new version of the code without abruptly `SIGTERM` stopping the current jobs being processed.
--
---
You received this message because you are subscribed to the Google Groups "delayed_job" group.
To unsubscribe from this group and stop receiving emails from it, send an email to delayed_job...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "delayed_job" group.
To unsubscribe from this group and stop receiving emails from it, send an email to delayed_job...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi David,hm good point: https://github.com/collectiveidea/delayed_job/blob/73bd1b50e719b336b70fcbb8dc4a37ec9b2f6f35/lib/delayed/worker.rb#L159raise_signal_exceptions is set to :term (most likely the default value). So the idea is to set it to false from preventing the Signal Exception?My workers are currently deployed to Heroku and I don't want to abruptly terminate them, so my idea is to stop processing then deploy.
On Tue, Sep 11, 2018 at 6:40 PM David Genord II <albu...@gmail.com> wrote:
The standard signals do that already.David
On Tue, Sep 11, 2018 at 4:48 PM, Pablo Cantero <pabl...@gmail.com> wrote:
Hey,Does delayed_jobs take signals? I would love to tell DJ to finish processing the current jobs, but stop taking new ones, so I can deploy a new version of the code without abruptly `SIGTERM` stopping the current jobs being processed.
--
---
You received this message because you are subscribed to the Google Groups "delayed_job" group.
To unsubscribe from this group and stop receiving emails from it, send an email to delayed_job+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "delayed_job" group.
To unsubscribe from this group and stop receiving emails from it, send an email to delayed_job+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
----
---
You received this message because you are subscribed to the Google Groups "delayed_job" group.
To unsubscribe from this group and stop receiving emails from it, send an email to delayed_job+unsubscribe@googlegroups.com.
Yes, but be aware, Heroku is not very patient. Your process has 30 seconds to gracefully shutdown before it hard kills it.David
On Tue, Sep 11, 2018 at 10:17 PM, Pablo Cantero <pabl...@gmail.com> wrote:
Hi David,hm good point: https://github.com/collectiveidea/delayed_job/blob/73bd1b50e719b336b70fcbb8dc4a37ec9b2f6f35/lib/delayed/worker.rb#L159raise_signal_exceptions is set to :term (most likely the default value). So the idea is to set it to false from preventing the Signal Exception?My workers are currently deployed to Heroku and I don't want to abruptly terminate them, so my idea is to stop processing then deploy.
On Tue, Sep 11, 2018 at 6:40 PM David Genord II <albu...@gmail.com> wrote:
The standard signals do that already.David
On Tue, Sep 11, 2018 at 4:48 PM, Pablo Cantero <pabl...@gmail.com> wrote:
Hey,Does delayed_jobs take signals? I would love to tell DJ to finish processing the current jobs, but stop taking new ones, so I can deploy a new version of the code without abruptly `SIGTERM` stopping the current jobs being processed.
--
---
You received this message because you are subscribed to the Google Groups "delayed_job" group.
To unsubscribe from this group and stop receiving emails from it, send an email to delayed_job...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "delayed_job" group.
To unsubscribe from this group and stop receiving emails from it, send an email to delayed_job...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--
---
You received this message because you are subscribed to the Google Groups "delayed_job" group.
To unsubscribe from this group and stop receiving emails from it, send an email to delayed_job...@googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "delayed_job" group.
To unsubscribe from this group and stop receiving emails from it, send an email to delayed_job...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.