-
-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to specify kill signal on step definition #275
Comments
Thanks for the feature request! :) Currently if a signal is sent to a example: schedule: "0 18 * * *" # schedule to stop the main DAG
steps:
- name: stop the DAG
command: pkill -INT -f "dagu start <DAG name>" I was thinking about alternative solutions (more generic ones) to deal with the situation.
I think the first one is the one we can add easily for now, if it fits your situation. How do you think? |
Hi, I use the UI to stop the DAG. The As for adding just the --signal without |
I see :) Then adding example: steps:
step:
- name: step 1
command: app.py
signalOnStop: "SIGINT" |
@fishnux This feature is implemented in |
Hi,
In a DAG step, I'm running an app that supports graceful shutdown upon CTRL+C. I experimented stopping the DAG in the middle of execution, but it seems it's not the same thing as doing CTRL+C.
As a feature request, can we define the TERM signal in the step definition when an exit is requested? So, for this specific step, I can use SIGINT (CTRL+C)
Thanks 🙂
Edit: Meanwhile, I edited the source-code of the app to trap SIGTERM as well
The text was updated successfully, but these errors were encountered: