Skip to content

Better context handling#3

Merged
carole-lavillonniere merged 1 commit intomainfrom
context-fix
Jan 29, 2026
Merged

Better context handling#3
carole-lavillonniere merged 1 commit intomainfrom
context-fix

Conversation

@carole-lavillonniere
Copy link
Collaborator

This allows gracefully cancel of ongoing runtime (docker) operations instead of killing the process abruptly.

  • Create root context with signal.NotifyContext. Cancel when signals SIGINT/Ctrl+C and SIGTERM are received.

  • Pass context to cobra and to commands and runtime operations.

towards DRG-352

Copy link
Member

@silv-io silv-io left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Base automatically changed from drg-352-implement-start to main January 29, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants