Skip to content

Comments

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

Merged
arikkfir merged 1 commit intomainfrom
arikkfir/use-fresh-context-for-post-hooks
Jul 12, 2024
Merged

fix(execute): use fresh context for post-run hooks#20
arikkfir merged 1 commit intomainfrom
arikkfir/use-fresh-context-for-post-hooks

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
@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