Skip to content

fix(paraprogress): Do not quit on receiving 100% progress#1028

Draft
nderjung wants to merge 1 commit intounikraft:stagingfrom
nderjung:nderjung/fix/tui/paraprogress/no-quit-on-100
Draft

fix(paraprogress): Do not quit on receiving 100% progress#1028
nderjung wants to merge 1 commit intounikraft:stagingfrom
nderjung:nderjung/fix/tui/paraprogress/no-quit-on-100

Conversation

@nderjung
Copy link
Copy Markdown
Member

Prerequisite checklist

  • Read the contribution guidelines regarding submitting new changes to the project;
  • Tested your changes against relevant architectures and platforms;
  • Ran make fmt on your commit series before opening this PR;
  • Updated relevant documentation.

Description of changes

This may pre-emptively shutdown the process. Instead, let the process exit "naturally". If the process is reporting via the onProgress-callback 100%, then this a mistake of the use of the callback itself, and the user will simply have to wait beyond the 100% until the process exits. There is now also aWithTimeout option so we can have both graceful and non-graceful exits with this package.

This may pre-emptively shutdown the process.  Instead, let the
process exit "naturally".  If the process is reporting via the
onProgress-callback 100%, then this a mistake of the use of the
callback itself, and the user will simply have to wait beyond
the 100% until the process exits.  There is now also a
`WithTimeout` option so we can have both graceful and non-
graceful exits with this package.

Signed-off-by: Alexander Jung <alex@unikraft.io>
@craciunoiuc craciunoiuc marked this pull request as draft July 5, 2024 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🧊 Icebox

Development

Successfully merging this pull request may close these issues.

1 participant