Skip to content

Update ctr to support deleting multiple tasks at a time#3441

Merged
estesp merged 1 commit intocontainerd:masterfrom
YLonely:multiple-task-delete
Jul 25, 2019
Merged

Update ctr to support deleting multiple tasks at a time#3441
estesp merged 1 commit intocontainerd:masterfrom
YLonely:multiple-task-delete

Conversation

@YLonely
Copy link
Copy Markdown
Contributor

@YLonely YLonely commented Jul 23, 2019

This pr include two things:

  1. Add an aliase "rm" to task delete command
  2. Update ctr to support deleting multiple tasks at a time
    For the 2nd update now we can use "ctr task rm $(ctr task ls -q)" to quickly remove unused tasks.
    The main body of the "exec-id" flag stays unchanged, which can only delete one exec at a time, the behavior of "exec-id" may need more discussion

Signed-off-by: BoWen Yan [email protected]

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 23, 2019

Build succeeded.

@crosbymichael
Copy link
Copy Markdown
Member

CI does not like your commit message:

 4249b8b - FAIL - commit subject exceeds 90 characters
1 commits to fix
The command "DCO_VERBOSITY=-q ../project/script/validate/dco" exited with 1.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 24, 2019

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 24, 2019

Build succeeded.

@codecov-io
Copy link
Copy Markdown

codecov-io commented Jul 24, 2019

Codecov Report

Merging #3441 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3441   +/-   ##
=======================================
  Coverage   44.11%   44.11%           
=======================================
  Files         124      124           
  Lines       13760    13760           
=======================================
  Hits         6070     6070           
  Misses       6759     6759           
  Partials      931      931
Flag Coverage Δ
#linux 47.87% <ø> (ø) ⬆️
#windows 39.76% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fdab4f4...392668d. Read the comment docs.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 24, 2019

Build succeeded.

Comment thread cmd/ctr/commands/tasks/delete.go Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This can early return before attempting to delete all tasks; seems like you need a way to store (and report) non-zero exit codes if you are going to do multi-delete.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

will fix it

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 25, 2019

Build succeeded.

@crosbymichael
Copy link
Copy Markdown
Member

LGTM

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

@estesp estesp merged commit 15b59f9 into containerd:master Jul 25, 2019
@YLonely YLonely deleted the multiple-task-delete branch July 26, 2019 00:56
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.

4 participants