delayed_job icon indicating copy to clipboard operation
delayed_job copied to clipboard

Add no-wait and force-kill-waittime options to Delayed::Comand

Open pacoguzman opened this issue 12 years ago • 13 comments

I've added support to these options that are used for Daemons gems.

In our case we have some long running jobs that we don't want to be locked when the process is killed on a new deployment, with these we avoid that problem and the process is going to still running after the current job is completed. Later our monitor system will start a new process.

What do you think? is this too specific to the daemons gem? I don't find another way to pass options to the daemons gem

pacoguzman avatar Dec 13 '12 11:12 pacoguzman

Some news with this

pacoguzman avatar Dec 26 '12 09:12 pacoguzman

I want to use this. Because, delayed_job's process was frequently force-killed on restart them.

asamix avatar Dec 26 '12 10:12 asamix

https://github.com/asamix/delayed_job/commit/f762cf7ab5cd953f8cc9a24faeaedf38a30259bd

asamix avatar Dec 26 '12 11:12 asamix

Will you accept this pull request if I rewrite it to work with current master? I think that it's really useful especially when you suffer from "process with pid X won't stop, we forcefully kill it" as described in #593 /cc @albus522

adamniedzielski avatar May 19 '15 12:05 adamniedzielski

Is it possible to resolve conflicts in this I think that this feature should be integrated please.

tiredenzo avatar Jun 30 '15 03:06 tiredenzo

Does this require a specific min version of the daemons gem?

albus522 avatar Jun 30 '15 14:06 albus522

👍

apurvis avatar May 16 '16 12:05 apurvis

have a more flexible solution that works with any version of the daemons gem here https://github.com/collectiveidea/delayed_job/pull/916

rfroetscher avatar May 16 '16 21:05 rfroetscher

Any plans to update this PR now that #916 was merged? It looks like we would still need the force_kill_waittime option in Delayed::Comand, since it is not an accepted command line option in the daemons gem, so couldn't be passed through daemon-options.

mike-stewart avatar Jun 09 '16 19:06 mike-stewart

After some research in one of my projects, I agree with @mike-stewart : #916 doesn't solve the problem of passing the force_kill_waittime option, we need another change to support this.

lacco avatar Jun 22 '16 15:06 lacco

A new switch, --force_kill_waittime, has been added to Daemons in https://github.com/thuehlinger/daemons/pull/65 (not yet released).

c960657 avatar Apr 26 '18 08:04 c960657

The new --force_kill_waittime switch for Daemons is included in the recent 1.3 release.

c960657 avatar Dec 13 '18 09:12 c960657

Can this Issue be closed since --force_kill_waittime switch has been added to the Daemons gem and no longer needs to be explicitly supported internally in delayed_job?

joshuapinter avatar Jan 05 '21 15:01 joshuapinter