Replies: 1 comment
-
Hi @ssbarnea. I opened an issue for this feature request: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to add some special cleanup logic at the end of execution of
task
command but one that would run regardless which task I called.For maintenance reasons I cannot really add an extra defer task of each task being added, so I need to rely of a feature that would allow me to define this special type of implicit "task", one that would be called only before exiting.
It would be key that this task is not called before task executable exits, as we don't want to be called accidentally in the middle of task executions.
I am aware that that there is a small risk of this being called if someone is calling task recursively using shell commands, but that is a small price to pay (in theory nesting can be detected via env vars).
Beta Was this translation helpful? Give feedback.
All reactions