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/drydock
epriestley f1119ffcf5 Support working copies and separate allocate + activate steps for resources/leases in Drydock
Summary:
Ref T9253. For resources and leases that need to do something which takes a lot of time or requires waiting, allow them to allocate/acquire first and then activate later.

When we allocate a resource or acquire a lease, the blueprint can either activate it immediately (if all the work can happen quickly/inline) or activate it later. If the blueprint activates it later, we queue a worker to handle activating it.

Rebuild the "working copy" blueprint to work with this model: it allocates/acquires and activates in a separate step, once it is able to acquire a host.

Test Plan: With some power of imagination, brought up a bunch of working copies with `bin/drydock lease --type working-copy ...`

Reviewers: hach-que, chad

Reviewed By: hach-que, chad

Maniphest Tasks: T9253

Differential Revision: https://secure.phabricator.com/D14127
2015-09-21 04:46:24 -07:00
..
application Show when objects have a non-default policy 2015-06-22 11:46:59 -07:00
blueprint Support working copies and separate allocate + activate steps for resources/leases in Drydock 2015-09-21 04:46:24 -07:00
capability Simplify the implementation of PhabricatorPolicyCapability subclasses 2014-07-25 08:25:42 +10:00
constants Implement a rough AlmanacService blueprint in Drydock 2015-09-21 04:43:53 -07:00
controller Tidy up some Drydock UI 2015-09-21 04:45:43 -07:00
customfield Implement a rough AlmanacService blueprint in Drydock 2015-09-21 04:43:53 -07:00
editor Modularize mail tags 2014-08-12 12:28:41 -07:00
exception Support working copies and separate allocate + activate steps for resources/leases in Drydock 2015-09-21 04:46:24 -07:00
interface Allow AlmanacHost blueprints to build a meaningful CommandInterface 2015-09-21 04:46:02 -07:00
management Support working copies and separate allocate + activate steps for resources/leases in Drydock 2015-09-21 04:46:24 -07:00
phid Tidy up some Drydock UI 2015-09-21 04:45:43 -07:00
query Implement a rough AlmanacService blueprint in Drydock 2015-09-21 04:43:53 -07:00
storage Support working copies and separate allocate + activate steps for resources/leases in Drydock 2015-09-21 04:46:24 -07:00
typeahead Improve Drydock log search engine 2015-08-24 21:13:20 +10:00
util Fix another undeclared property 2015-06-15 07:54:12 -07:00
view Improve Drydock log search engine 2015-08-24 21:13:20 +10:00
worker Support working copies and separate allocate + activate steps for resources/leases in Drydock 2015-09-21 04:46:24 -07:00