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)
Tue, Dec 17, 11:19 PM
Unknown Object (File)
Mon, Dec 9, 6:36 PM
Unknown Object (File)
Mon, Dec 9, 5:09 PM
Unknown Object (File)
Thu, Dec 5, 7:58 AM
Unknown Object (File)
Sat, Nov 30, 10:25 AM
Unknown Object (File)
Wed, Nov 27, 9:21 PM
Unknown Object (File)
Wed, Nov 27, 5:56 PM
Unknown Object (File)
Sun, Nov 24, 4:23 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
Branch
T5402
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 3332
Build 3339: [Placeholder Plan] Wait for 30 Seconds

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.