1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-11 17:32:41 +01:00
phorge-phorge/src/applications/harbormaster/step
epriestley 4a6d2e9c97 Allow tasks to yield to other tasks
Summary:
For Harbormaster tasks which want to poll or wait, this lets them say "try again a little later" without having to sleep and hold a queue slot.

This is basically the same as failing, except that we don't increment the failure counter. Instead, we just set the current lease to the correct length and then exit. The task will be retried after the lease expires.

Test Plan: Using both `bin/harbormaster` and `phd debug taskmaster`, ran a lot of waiting tasks through the queue, faking them to either yield or not yield in a controlled manner. The queue responded as expected, yielding tasks appropraitely and retrying them later.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D8792
2014-04-16 13:02:12 -07:00
..
HarbormasterBuildStepImplementation.php Allow Harbormaster build targets to wait for messages 2014-04-16 13:01:46 -07:00
HarbormasterCommandBuildStepImplementation.php Make various minor Harbormaster UI improvements 2014-03-25 16:10:50 -07:00
HarbormasterHTTPRequestBuildStepImplementation.php Allow Harbormaster build targets to wait for messages 2014-04-16 13:01:46 -07:00
HarbormasterLeaseHostBuildStepImplementation.php Make various minor Harbormaster UI improvements 2014-03-25 16:10:50 -07:00
HarbormasterPublishFragmentBuildStepImplementation.php Make various minor Harbormaster UI improvements 2014-03-25 16:10:50 -07:00
HarbormasterSleepBuildStepImplementation.php Make various minor Harbormaster UI improvements 2014-03-25 16:10:50 -07:00
HarbormasterThrowExceptionBuildStep.php Make various minor Harbormaster UI improvements 2014-03-25 16:10:50 -07:00
HarbormasterUploadArtifactBuildStepImplementation.php Make various minor Harbormaster UI improvements 2014-03-25 16:10:50 -07:00
HarbormasterWaitForPreviousBuildStepImplementation.php Allow tasks to yield to other tasks 2014-04-16 13:02:12 -07:00