1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-25 21:19:21 +01:00
phorge-phorge/src/infrastructure/daemon/workers
epriestley 1650874004 Modernize Drydock CLI management of task execution
Summary:
Ref T2015. Currently, Drydock has a `wait-for-lease` workflow which is invoked in the background by the `lease` workflow.

The goal of this mechanism is to allow `bin/drydock lease` to print out logs as the lease is acquired. However, this predates the `runAllTasksInProcess` flags, and they provide a simpler and more robust way (potentially with `--trace` and `PhutilConsole`) to do synchronous execution and debug logging.

Simplify this whole mechanism: just run everything in-process in `bin/drydock lease`, and do logging via `--trace`. We could thread a `PhutilConsole` through things too, but this seems good enough for now.

Also various cleanup/etc.

Test Plan: Ran `bin/drydock lease`. Ran `bin/harbormaster build X --plan Y`, for `Y` being a Drydock-dependent build plan.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2015

Differential Revision: https://secure.phabricator.com/D7835
2013-12-27 13:15:12 -08:00
..
__tests__ Make taskmaster consumption of failed tasks more FIFO-ey 2013-12-08 21:07:13 -08:00
exception Delete license headers from files 2012-11-05 11:16:51 -08:00
query Make taskmaster consumption of failed tasks more FIFO-ey 2013-12-08 21:07:13 -08:00
storage Surface task queue temporary failure rate in Daemon console 2013-07-23 16:58:22 -07:00
PhabricatorTaskmasterDaemon.php Use PhutilProxyException to disambiguate work queue failures 2013-07-23 16:58:21 -07:00
PhabricatorWorker.php Modernize Drydock CLI management of task execution 2013-12-27 13:15:12 -08:00