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

chore: add error check to KillNTSC #8441

Merged
merged 6 commits into from
Nov 21, 2023
Merged

Conversation

carolinaecalderon
Copy link
Contributor

@carolinaecalderon carolinaecalderon commented Nov 16, 2023

Description

In KillNTSC, if Signal returns a not found error, continue & don't return an error. This fixes a potential race condition where the db says a command isn't completed yet the allocation has already exited. This also addresses the case where if a user asks to kill a successfully exited NTSCs, it won't attempt to Signal & kill its allocation a second time.

Test Plan

Pass CircleCI

Commentary (optional)

Checklist

  • Changes have been manually QA'd
  • User-facing API changes need the "User-facing API Change" label.
  • Release notes should be added as a separate file under docs/release-notes/.
    See Release Note for details.
  • Licenses should be included for new code which was copied and/or modified from any external code.

Ticket

@cla-bot cla-bot bot added the cla-signed label Nov 16, 2023
Copy link

netlify bot commented Nov 16, 2023

Deploy Preview for determined-ui canceled.

Name Link
🔨 Latest commit 4363710
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/655bd6be03c6f600070ddeca

@carolinaecalderon carolinaecalderon marked this pull request as ready for review November 17, 2023 15:50
@carolinaecalderon carolinaecalderon requested a review from a team as a code owner November 17, 2023 15:50
@stoksc
Copy link
Contributor

stoksc commented Nov 18, 2023

oh wait, wasn't the err check on the allocation service call? it's on db now.

master/internal/command/command.go Outdated Show resolved Hide resolved
@carolinaecalderon carolinaecalderon changed the title chore: add error check to command onExit chore: add error check to KillNTSC Nov 20, 2023
@stoksc
Copy link
Contributor

stoksc commented Nov 20, 2023

nit, commit comment (pr desc) doesn't match behavior anymore.

@carolinaecalderon carolinaecalderon merged commit 167e237 into main Nov 21, 2023
69 of 80 checks passed
@carolinaecalderon carolinaecalderon deleted the command-onexit-check-error branch November 21, 2023 02:54
@dannysauer dannysauer added this to the 0.26.5 milestone Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants