1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-04 12:42:43 +01:00
phorge-phorge/src/infrastructure/daemon/workers/storage
epriestley 84ee4cd9f6 Factor out task execution and formalize permanent failures
Summary:
  - Clean up a TODO about permanent failures.
  - Clean up a TODO about failing tasks after too many retries.
  - Clean up a TODO about testing for bad leases.
  - Make the lease/retry implementation more flexible and natural.
  - Make completely bogus tasks fail permanently.
  - Make PhabricatorMetaMTAWorker use new `getWaitBeforeRetry()` (as intended), not hackily implement logic in `getRequiredLeaseTime()`.
  - Document worker hooks for failures and retries.
  - Provide coverage on everything.

Test Plan: Ran unit tests. Ran `bin/phd debug taskmaster`.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2015

Differential Revision: https://secure.phabricator.com/D3859
2012-11-01 11:30:23 -07:00
..
PhabricatorWorkerActiveTask.php Factor out task execution and formalize permanent failures 2012-11-01 11:30:23 -07:00
PhabricatorWorkerArchiveTask.php Modernize worker task detail view 2012-10-31 15:22:32 -07:00
PhabricatorWorkerDAO.php Move completed tasks to an "archive" table and delete them in the GC 2012-10-31 15:22:16 -07:00
PhabricatorWorkerTask.php Factor out task execution and formalize permanent failures 2012-11-01 11:30:23 -07:00
PhabricatorWorkerTaskData.php Move files in Phabricator one level up 2012-06-01 12:32:44 -07:00