Skip to content
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

fix(execute): use fresh context for post-run hooks #20

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

arikkfir
Copy link
Owner

This change ensures that command post-run hooks receive a fresh context instead of the original context passed to the Execute functions.

This is needed since often the context passed to the Execute functions is canceled by the time the post-run hooks are ran - either by the OS signal, deadlines, or other reasons.

@arikkfir arikkfir added the bug Something isn't working label Jul 12, 2024
@arikkfir arikkfir self-assigned this Jul 12, 2024
This change ensures that command post-run hooks receive a fresh context
instead of the original context passed to the `Execute` functions.

This is needed since often the context passed to the `Execute` functions
is canceled by the time the post-run hooks are ran - either by the OS
signal, deadlines, or other reasons.
@arikkfir arikkfir force-pushed the arikkfir/use-fresh-context-for-post-hooks branch from dd17876 to 1a9d807 Compare July 12, 2024 20:14
@arikkfir arikkfir merged commit 1b6608a into main Jul 12, 2024
4 checks passed
@arikkfir arikkfir deleted the arikkfir/use-fresh-context-for-post-hooks branch July 12, 2024 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant