Page MenuHomePhabricator

Add more selectors to existing "bin/worker" commands

Authored by epriestley on Feb 1 2021, 9:53 PM.



Ref T13591. Add more selector flags to let "bin/worker" commands operate on tasks by container PHID, object PHID, priority, etc.

This anticipates adding "bin/worker reprioritize" and "bin/worker delay" workflows, to provide more tools for handling repository imports.

Test Plan
  • Ran bin/worker execute, cancel, retry, and free with various sets of selector flags.
  • Used --min-priority, --max-priority, --object, --container, --archived, --max-failure-count to select tasks.
  • Specified invalid, duplicate, aliased objects with "--object".
  • Specified invalid range priority selectors.

Diff Detail

rP Phabricator
Lint Not Applicable
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Feb 2 2021, 9:40 PM
This revision was automatically updated to reflect the committed changes.