@@ -63,7 +63,27 @@ class MigrationWorkflow(proto.Message):
63
63
"""
64
64
65
65
class State (proto .Enum ):
66
- r"""Possible migration workflow states."""
66
+ r"""Possible migration workflow states.
67
+
68
+ Values:
69
+ STATE_UNSPECIFIED (0):
70
+ Workflow state is unspecified.
71
+ DRAFT (1):
72
+ Workflow is in draft status, i.e. tasks are
73
+ not yet eligible for execution.
74
+ RUNNING (2):
75
+ Workflow is running (i.e. tasks are eligible
76
+ for execution).
77
+ PAUSED (3):
78
+ Workflow is paused. Tasks currently in
79
+ progress may continue, but no further tasks will
80
+ be scheduled.
81
+ COMPLETED (4):
82
+ Workflow is complete. There should not be any
83
+ task in a non-terminal state, but if they are
84
+ (e.g. forced termination), they will not be
85
+ scheduled.
86
+ """
67
87
STATE_UNSPECIFIED = 0
68
88
DRAFT = 1
69
89
RUNNING = 2
@@ -138,7 +158,26 @@ class MigrationTask(proto.Message):
138
158
"""
139
159
140
160
class State (proto .Enum ):
141
- r"""Possible states of a migration task."""
161
+ r"""Possible states of a migration task.
162
+
163
+ Values:
164
+ STATE_UNSPECIFIED (0):
165
+ The state is unspecified.
166
+ PENDING (1):
167
+ The task is waiting for orchestration.
168
+ ORCHESTRATING (2):
169
+ The task is assigned to an orchestrator.
170
+ RUNNING (3):
171
+ The task is running, i.e. its subtasks are
172
+ ready for execution.
173
+ PAUSED (4):
174
+ Tha task is paused. Assigned subtasks can
175
+ continue, but no new subtasks will be scheduled.
176
+ SUCCEEDED (5):
177
+ The task finished successfully.
178
+ FAILED (6):
179
+ The task finished unsuccessfully.
180
+ """
142
181
STATE_UNSPECIFIED = 0
143
182
PENDING = 1
144
183
ORCHESTRATING = 2
@@ -234,7 +273,27 @@ class MigrationSubtask(proto.Message):
234
273
"""
235
274
236
275
class State (proto .Enum ):
237
- r"""Possible states of a migration subtask."""
276
+ r"""Possible states of a migration subtask.
277
+
278
+ Values:
279
+ STATE_UNSPECIFIED (0):
280
+ The state is unspecified.
281
+ ACTIVE (1):
282
+ The subtask is ready, i.e. it is ready for
283
+ execution.
284
+ RUNNING (2):
285
+ The subtask is running, i.e. it is assigned
286
+ to a worker for execution.
287
+ SUCCEEDED (3):
288
+ The subtask finished successfully.
289
+ FAILED (4):
290
+ The subtask finished unsuccessfully.
291
+ PAUSED (5):
292
+ The subtask is paused, i.e., it will not be
293
+ scheduled. If it was already assigned,it might
294
+ still finish but no new lease renewals will be
295
+ granted.
296
+ """
238
297
STATE_UNSPECIFIED = 0
239
298
ACTIVE = 1
240
299
RUNNING = 2
0 commit comments