Page MenuHomePhabricator

Add `objectPHID` keys to Harbormaster task schedulers
ClosedPublic

Authored by epriestley on Nov 22 2015, 11:01 PM.
Tags
None
Referenced Files
F13134447: D14541.diff
Thu, May 2, 3:05 AM
Unknown Object (File)
Thu, Apr 25, 2:03 AM
Unknown Object (File)
Thu, Apr 11, 11:57 PM
Unknown Object (File)
Thu, Apr 11, 6:50 PM
Unknown Object (File)
Tue, Apr 9, 6:55 AM
Unknown Object (File)
Mar 21 2024, 11:16 AM
Unknown Object (File)
Mar 6 2024, 12:23 AM
Unknown Object (File)
Mar 3 2024, 4:19 PM
Subscribers
None

Details

Summary

Fixes T9816. It's currently hard to hunt down some particulars in the worker queue if things go awry in Harbormaster.

Supplement the queue with objectPHID keys so we can hunt tasks down more easily if the issues in T9816 continue.

Test Plan
mysql> select * from worker_archivetask order by id desc limit 30;
+--------+------------------------------------------------+-----------------------------------+--------------+--------------+--------+--------+----------+-------------+--------------+----------+--------------------------------+
| id     | taskClass                                      | leaseOwner                        | leaseExpires | failureCount | dataID | result | duration | dateCreated | dateModified | priority | objectPHID                     |
+--------+------------------------------------------------+-----------------------------------+--------------+--------------+--------+--------+----------+-------------+--------------+----------+--------------------------------+
| 496024 | HarbormasterTargetWorker                       | 8514:1448232248:Orbital.local:3   |   1448318648 |            0 | 311880 |      0 |   233758 |  1448232248 |   1448232248 |     2000 | PHID-HMBT-thq4oof4byllmbc4q3tt |
| 496023 | PhabricatorApplicationTransactionPublishWorker | 8514:1448232247:Orbital.local:1   |   1448239447 |            0 | 311879 |      0 |    53731 |  1448232247 |   1448232247 |     1000 | PHID-HMBD-i6zo2ltc73rre7o54s7v |
| 496022 | HarbormasterBuildWorker                        | 8514:1448232247:Orbital.local:2   |   1448239447 |            0 | 311878 |      0 |    30736 |  1448232248 |   1448232248 |     2000 | PHID-HMBD-i6zo2ltc73rre7o54s7v |
...

Diff Detail

Repository
rP Phabricator
Branch
buildid
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 8982
Build 10547: Run Core Tests
Build 10546: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Add `objectPHID` keys to Harbormaster task schedulers.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Nov 23 2015, 12:45 AM
This revision was automatically updated to reflect the committed changes.