Index: appengine/cmd/dm/enums/attempt/state.go |
diff --git a/appengine/cmd/dm/enums/attempt/state.go b/appengine/cmd/dm/enums/attempt/state.go |
index 301b96767d4dd561100a445e543c68a4f913dd30..b4cc8d7ae0e0f8e162fcf444f6e944605d893a0b 100644 |
--- a/appengine/cmd/dm/enums/attempt/state.go |
+++ b/appengine/cmd/dm/enums/attempt/state.go |
@@ -20,6 +20,7 @@ const ( |
Executing |
AddingDeps |
Blocked |
+ AwaitingExecutionState |
Finished |
) |
@@ -27,11 +28,12 @@ const ( |
// identity transition (X -> X) is implied, as long as X has an entry in this |
// mapping. |
var validStateEvolution = map[State][]State{ |
- AddingDeps: {Blocked, NeedsExecution}, |
- Blocked: {NeedsExecution}, |
- Executing: {AddingDeps, Finished}, |
- Finished: {}, |
- NeedsExecution: {Executing}, |
+ AddingDeps: {Blocked, NeedsExecution}, |
+ Blocked: {AwaitingExecutionState, NeedsExecution}, |
+ AwaitingExecutionState: {NeedsExecution}, |
+ Executing: {AddingDeps, Finished}, |
+ Finished: {}, |
+ NeedsExecution: {Executing}, |
} |
// Evolve attempts to evolve the state of this Attempt. If the state |