-
Notifications
You must be signed in to change notification settings - Fork 121
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
Run cleanup_task on SIGINT #877
Comments
@SomaticIT sorry for late reply. |
@sagiegurari, thank you for your reply. I understand your mean. However, it's not uncommon to see scripts that react to the
To clarify a good use case for this feature, it would be useful to start some containers before running the dev server and stopping/cleaning these containers when killing the server. Maybe to avoid ambiguities, we could add an option (eg : |
there is some unstable feature for singal handling which kills child process and might be a good start for reusing for this issue. |
Describe The Bug
The
cleanup_task
does not run when flow is interrupted byCtrl+C
.This is problematic when using
cargo watch
(or similar).Exemple:
Imagine we are developing a web server with
actix-web
. We need aredis
database to store some data.We want to setup the environment before runing
cargo watch
and clean up the environment when we interupt the watch.To Reproduce
1/ Setup
Makefile.toml
2/ Run
cargo make dev
3/
Ctrl+C
The task
cleanup
is never executed.Error Stack
None.
The text was updated successfully, but these errors were encountered: