fix: cleanup azcopy jobs after job complete#2394
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andyzhangx The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
pkg/util/util.go
Outdated
| func (ac *Azcopy) TestListJobs(accountName, storageEndpointSuffix string, authAzcopyEnv []string) (string, error) { | ||
| cmdStr := fmt.Sprintf("azcopy list %s", fmt.Sprintf("https://%s.file.%s", accountName, storageEndpointSuffix)) | ||
| func (ac *Azcopy) CleanJobs() (string, error) { | ||
| cmdStr := "azcopy jobs clean --with-status=completed" |
There was a problem hiding this comment.
Andy, do we need some kind of eventual cleanups of other completion/failed/cancelled azcopy jobs as well so that over time these were not accumulated?
There was a problem hiding this comment.
then I think we just use the default value(All), for other status, we should clean them all.
fix comments
166c186 to
0a59245
Compare
|
/retest |
1 similar comment
|
/retest |
|
@andyzhangx: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/cherrypick release-1.31 |
|
/cherrypick release-1.30 |
|
@andyzhangx: new pull request created: #2396 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@andyzhangx: new pull request created: #2397 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
fix: cleanup azcopy jobs after job complete
this could reduce .azopy/plans folder files
Which issue(s) this PR fixes:
Fixes #2387
Requirements:
Special notes for your reviewer:
Release note: