Page MenuHomePhabricator

Daemons - add "objectPHID" to task tables.
ClosedPublic

Authored by btrahan on Dec 24 2014, 12:18 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 12:55 AM
Unknown Object (File)
Sun, Apr 21, 9:10 PM
Unknown Object (File)
Thu, Apr 11, 8:40 AM
Unknown Object (File)
Thu, Apr 11, 12:52 AM
Unknown Object (File)
Thu, Apr 4, 9:48 AM
Unknown Object (File)
Thu, Apr 4, 8:32 AM
Unknown Object (File)
Feb 28 2024, 5:48 AM
Unknown Object (File)
Feb 12 2024, 3:20 AM
Subscribers
Tokens
"Mountain of Wealth" token, awarded by epriestley.

Details

Summary

Ref T5402. This more or less "fixes" it but there's probably some polish to do?

Test Plan

stopped and started daemons. error logs look good.

ran bin/storage upgrade. noted that adjust added the appropriate indices for active and archive task.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

btrahan retitled this revision from to Daemons - add "objectPHID" to task tables..
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added a reviewer: epriestley.
src/infrastructure/daemon/workers/query/PhabricatorWorkerLeaseQuery.php
185

typo, will fix

epriestley edited edge metadata.

I thiiiiiink the second thing is a real issue?

src/infrastructure/daemon/workers/query/PhabricatorWorkerLeaseQuery.php
185

Should be %Ls.

src/infrastructure/daemon/workers/storage/PhabricatorWorkerTask.php
30

For consistency, prefer key_object.

(Do the subclasses override this and do anything funky? I seem to remember there being some weird things here. I'd expect the subclasses might need to do a $value = $value + $parent[self::CONFIG_KEY_SCHEMA] sort of thing, or we'll end up with a bunch of database issues and/or storage adjust destroying a pile of keys?)

This revision now requires changes to proceed.Dec 24 2014, 12:22 AM
btrahan edited edge metadata.
  • key_object as preferred
  • add in the parent config for keys
btrahan edited edge metadata.
epriestley edited edge metadata.

Awesome, this looks like exactly what I'm after.

This revision is now accepted and ready to land.Dec 24 2014, 12:29 AM
This revision was automatically updated to reflect the committed changes.