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

Ctrl+C does not exit cleanly #1

Open
mineugene opened this issue Feb 13, 2022 · 1 comment
Open

Ctrl+C does not exit cleanly #1

mineugene opened this issue Feb 13, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@mineugene
Copy link
Owner

Background jobs remain when cancelling execution of script during package id validation.

@mineugene
Copy link
Owner Author

Although the remaining O(N) background jobs are cleaned, it is still possible for 1 background job to slip through and stay unremoved. Aborting the script while the tasks are being created in the foreach loop does not catch the lastest job created.

foreach ($a in $ArgsList) {
  # last background job not appended on abort :(
  $tasks += start-job -argumentlist $a -scriptblock $Cmd
}

To recreate issue, press Ctrl+C while before the ellipsis appears
issue1

@mineugene mineugene reopened this Feb 13, 2022
@mineugene mineugene added the bug Something isn't working label Feb 13, 2022
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

No branches or pull requests

1 participant