1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-22 10:18:48 +02:00
phorge-phorge/src/applications/harbormaster/query
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
..
HarbormasterBuildableQuery.php Formalize "manual" buildables in Harbormaster 2013-12-26 10:40:43 -08:00
HarbormasterBuildableSearchEngine.php Formalize "manual" buildables in Harbormaster 2013-12-26 10:40:43 -08:00
HarbormasterBuildArtifactQuery.php Migrate "Run Command" to use Drydock hosts 2013-12-05 14:06:22 +11:00
HarbormasterBuildItemQuery.php
HarbormasterBuildLogQuery.php Introduce HarbormasterBuildTarget to snapshot build steps through a build 2013-12-05 12:01:12 +11:00
HarbormasterBuildPlanQuery.php Allow Harbormaster build plans to be disabled 2013-12-26 10:40:22 -08:00
HarbormasterBuildPlanSearchEngine.php Allow Harbormaster build plans to be disabled 2013-12-26 10:40:22 -08:00
HarbormasterBuildPlanTransactionQuery.php
HarbormasterBuildQuery.php Replace "Cancel Build" with "Stop", "Resume" and "Restart" 2014-01-06 12:32:20 -08:00
HarbormasterBuildStepQuery.php Implement explicit build step ordering in Harbormaster 2013-12-06 14:12:15 +11:00
HarbormasterBuildTargetQuery.php Introduce HarbormasterBuildTarget to snapshot build steps through a build 2013-12-05 12:01:12 +11:00