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(kv): Store canceled task runs in the correct bucket #16238

Merged
merged 2 commits into from
Dec 17, 2019

Conversation

brettbuddin
Copy link
Contributor

@brettbuddin brettbuddin commented Dec 17, 2019

Task runs are stored and retrieved from the taskRunsv1 bucket, but when they are canceled they are incorrectly placed in the tasksv1 bucket. Once this has been done, further look ups of the task run fail, because it is located in the wrong bucket.

This addresses the problem by placing them back into the taskRunsv1 bucket. An additional test has been added to ensure we are able to successfully read a canceled run.

@brettbuddin brettbuddin force-pushed the bb-cancelation-bucket branch 2 times, most recently from 5d33e60 to affb0fb Compare December 17, 2019 15:06
Task runs are stored and retrieved from the `taskRunsv1` bucket, but
when they are canceled they are incorrectly placed in the `tasksv1`
bucket. Once this has been done, further look ups of the task run fail,
because it is located in the wrong bucket.

This addresses the problem by placing them back into the `taskRunsv1`
bucket. An additional test has been added to ensure we are able to
successfully read a canceled run.
@brettbuddin brettbuddin requested a review from a team December 17, 2019 16:10
@ghost ghost requested review from aanthony1243 and removed request for a team December 17, 2019 16:10
Copy link
Contributor

@stuartcarnie stuartcarnie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solid stuff, @brettbuddin!

@brettbuddin brettbuddin merged commit 09f2f40 into master Dec 17, 2019
@brettbuddin brettbuddin deleted the bb-cancelation-bucket branch December 17, 2019 18:29
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.

None yet

2 participants