Page MenuHomePhabricator

Implement a `bin/worker kill <criteria>` for batch-flushing tasks from the queue
Closed, ResolvedPublic

Description

Use cases:

$ ./bin/worker kill --class X # Kill all queued tasks of class X
$ ./bin/worker kill --unknown # Kill all queued tasks with unknown classes.
$ ./bin/worker kill --failures 8 # Kill all queued tasks with 8 or more failures.

Revisions and Commits

Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision

Event Timeline

epriestley added a project: Daemons.
epriestley added subscribers: epriestley, wez.
epriestley lowered the priority of this task from Low to Wishlist.Aug 13 2013, 9:22 PM

The recent updates to the daemons seem to have bought us a lot of headroom here.

epriestley added a subscriber: Unknown Object (MLST).Sep 3 2013, 11:44 PM

Via FB.

epriestley added a revision: Restricted Differential Revision.Nov 23 2014, 7:10 PM
epriestley added a commit: Restricted Diffusion Commit.Nov 24 2014, 7:10 PM
epriestley added a revision: Restricted Differential Revision.Dec 6 2014, 4:22 PM
epriestley added a commit: Restricted Diffusion Commit.Dec 6 2014, 5:14 PM
epriestley renamed this task from Build `bin/queue` or `bin/worker` or similar with administrative queue commands to Expand the capabilities of `bin/worker`.Jan 9 2015, 4:10 PM

We have flood, free, cancel and retry workflows now; the exec (run a task by ID in the foreground) and kill (bulk-cancel tasks by query-like selection) workflows described in the original description would probably be the most useful additions at this point. kill might not be a very good name, the desired behavior is more like cancel-all-tasks-matching [conditions].

epriestley added a revision: Restricted Differential Revision.Feb 10 2015, 9:19 PM
epriestley added a commit: Restricted Diffusion Commit.Feb 11 2015, 2:06 PM
epriestley renamed this task from Expand the capabilities of `bin/worker` to Implement a `bin/worker kill <criteria>` for batch-flushing tasks from the queue.Dec 14 2015, 7:19 PM
epriestley updated the task description. (Show Details)
epriestley changed the visibility from "All Users" to "Public (No Login Required)".
epriestley added a subscriber: hach-que.
epriestley added a revision: Restricted Differential Revision.Jul 11 2016, 2:21 PM
epriestley added a commit: Restricted Diffusion Commit.Jul 11 2016, 4:21 PM
eadler added a project: Restricted Project.Aug 7 2016, 8:13 PM
epriestley claimed this task.

Use cases seem to be fairly well covered now.