Page MenuHomePhabricator

Add more selectors to existing "bin/worker" commands
ClosedPublic

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

Details

Summary

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

Repository
rP Phabricator
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit 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.