1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 23:32:40 +01:00
phorge-phorge/src/applications/daemon
Austin McKinley abc26aa96f Track total time from task creation to task archival
Summary:
Ref T5401. Depends on D20201. Add timestamps to worker tasks to track task creation, and pass that through to archive tasks. This lets us measure the total time the task spent in the queue, not just the duration it was actually running.

Also displays this information in the daemon status console; see screenshot: {F6225726}

Test Plan:
Stopped daemons, ran `bin/search index --all --background` to create lots of tasks, restarted daemons, observed expected values for `dateCreated` and `epochArchived` in the archive worker table.

Also tested the changes to `unarchiveTask` by forcing a search task to permanently fail and then `bin/worker retry`ing it.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley, PHID-OPKG-gm6ozazyms6q6i22gyam

Maniphest Tasks: T5401

Differential Revision: https://secure.phabricator.com/D20200
2019-02-20 14:44:29 -08:00
..
application Remove some ancient daemon log code 2019-02-20 09:52:11 -08:00
controller Track total time from task creation to task archival 2019-02-20 14:44:29 -08:00
event Remove daemon envHash and envInfo 2015-11-11 08:54:45 +11:00
garbagecollector Add a "lock log" for debugging where locks are being held 2018-03-05 17:55:34 -08:00
management Continue cleaning up queries in the wake of changes to "%Q" 2018-11-16 12:49:44 -08:00
query Update many Phabricator queries for new %Q query semantics 2018-11-15 03:48:10 -08:00
storage Add a "lock log" for debugging where locks are being held 2018-03-05 17:55:34 -08:00
view Remove some ancient daemon log code 2019-02-20 09:52:11 -08:00