Skip to content

(maint) Add more uniqueness to jobid and useful termination message #107

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

Merged
merged 2 commits into from
Oct 9, 2020

Conversation

sbeaulie
Copy link
Contributor

@sbeaulie sbeaulie commented Oct 9, 2020

Status

[Ready for Merge]

Description

Before this change there was a non zero chance that two requests could be received
at the same millisecond and have the same jobid. Added the username as a prefix
to the job id. Also returns a useful message when ctrl-c or terminating the app while
in the ABS loop.

Related Issues

Todos

  • Tests
  • Documentation

Reviewers

@puppetlabs/dio
@highb
@briancain

Samuel Beaulieu added 2 commits October 9, 2020 10:23
Before this change there was a non zero chance that two requests could be received
at the same millisecond and have the same jobid. Added the username as a prefix
to the job id
to query ABS for the state of the request or to delete it
@sbeaulie sbeaulie requested review from briancain, highb and a team as code owners October 9, 2020 15:40
@sbeaulie
Copy link
Contributor Author

sbeaulie commented Oct 9, 2020

here is an example of ctrl-c when the ABS loop is running

$ floaty get debian-8-x86_64
Requesting VMs with job_id: samuel-1602257755201.  Will retry for up to an hour.
Waiting 1 seconds to check if ABS request has been filled.  Queue Position: 265... (x1)
^C

Floaty interrupted, you can query the state of your request via
1) `floaty query samuel-1602257755201` or delete it via
2) `floaty delete samuel-1602257755201`

@genebean genebean merged commit 221f6c1 into master Oct 9, 2020
@genebean genebean deleted the fix-jobid-uniqueness branch October 9, 2020 15:44
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