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(paraprogress): Do not quit on receiving 100% progress #1028

Draft
wants to merge 1 commit into
base: staging
Choose a base branch
from

Conversation

nderjung
Copy link
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