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.

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 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 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.
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.