Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

feat(samples): delete old test jobs #148

Merged
merged 4 commits into from
Feb 8, 2022
Merged

feat(samples): delete old test jobs #148

merged 4 commits into from
Feb 8, 2022

Conversation

irataxy
Copy link
Contributor

@irataxy irataxy commented Jan 20, 2022

Address feedback from @bcoe in #143 (review)

Fixes 214389318

@product-auto-label product-auto-label bot added api: transcoder Issues related to the googleapis/nodejs-video-transcoder API. samples Issues that are directly related to samples. labels Jan 20, 2022
@irataxy irataxy requested a review from bcoe January 20, 2022 19:16
@irataxy irataxy added the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 20, 2022
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 20, 2022
@@ -127,6 +127,24 @@ after(async () => {
} catch (err) {
console.log('Cannot delete bucket');
}
// Delete outstanding jobs created more than 3 days ago
const {TranscoderServiceClient} =
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a prefix we can check for as well on job.name? Otherwise I'm worried we might delete resources unintentionally.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately not. The job is a long-running operation where the server assigns a random name.

@tmatsuo tmatsuo added the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 8, 2022
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 8, 2022
@tmatsuo tmatsuo merged commit ad94ca0 into googleapis:main Feb 8, 2022
tmatsuo pushed a commit that referenced this pull request Feb 8, 2022
Co-authored-by: Takashi Matsuo <tmatsuo@google.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: transcoder Issues related to the googleapis/nodejs-video-transcoder API. samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants