1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 08:12:40 +01:00
phorge-phorge/src/applications/harbormaster/step
epriestley 1786093c6e Replace "Cancel Build" with "Stop", "Resume" and "Restart"
Summary:
Ref T1049. Currently you can cancel a build, but now that we're tracking a lot more state we can stop, resume, and restart builds.

When the user issues a command against a build, I'm writing it into an auxiliary queue (`HarbormasterBuildCommand`) and then reading them out in the worker. This is mostly to avoid race messes where we try to `save()` the object in multiple places: basically, the BuildEngine is the //only// thing that writes to Build objects, and it holds a lock while it does it.

Test Plan:
  - Created a plan which runs "sleep 2" a bunch of times in a row.
  - Stopped, resumed, and restarted it.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran, chad

Maniphest Tasks: T1049

Differential Revision: https://secure.phabricator.com/D7892
2014-01-06 12:32:20 -08:00
..
BuildStepImplementation.php Implement "Wait for Previous Builds" build step 2013-12-10 11:02:34 +11:00
CommandBuildStepImplementation.php Implement "Upload Artifact" build step 2013-12-06 14:11:05 +11:00
HarbormasterHTTPRequestBuildStepImplementation.php Introduce HarbormasterBuildTarget to snapshot build steps through a build 2013-12-05 12:01:12 +11:00
LeaseHostBuildStepImplementation.php Make Drydock more broadly aware of policies 2013-12-27 13:15:19 -08:00
PublishFragmentBuildStepImplementation.php Implement step for publishing files as fragments to Phragment in Harbormaster 2013-12-09 09:34:09 +11:00
SleepBuildStepImplementation.php Introduce HarbormasterBuildTarget to snapshot build steps through a build 2013-12-05 12:01:12 +11:00
UploadArtifactBuildStepImplementation.php Implement step for publishing files as fragments to Phragment in Harbormaster 2013-12-09 09:34:09 +11:00
VariableBuildStepImplementation.php Migrate "Run Command" to use Drydock hosts 2013-12-05 14:06:22 +11:00
WaitForPreviousBuildStepImplementation.php Replace "Cancel Build" with "Stop", "Resume" and "Restart" 2014-01-06 12:32:20 -08:00