You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/operator/workloads/workload.go
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -30,10 +30,12 @@ const (
30
30
31
31
typeWorkloadinterface {
32
32
BaseWorkloadInterface
33
-
CanRun(*context.Context) (bool, error)
34
-
Start(*context.Context) error
35
-
IsRunning(*context.Context) (bool, error)
36
-
IsSucceeded(*context.Context) (bool, error)
33
+
CanRun(*context.Context) (bool, error) // All of the dependencies are satisfied and the workload can be started
34
+
Start(*context.Context) error// Start the workload
35
+
IsStarted(*context.Context) (bool, error) // The workload was started on the most recent deploy (might be running, succeeded, or failed). It's ok if this doesn't remain accurate across cx deploys
36
+
IsRunning(*context.Context) (bool, error) // The workload is currently running
37
+
IsSucceeded(*context.Context) (bool, error) // The workload succeeded
38
+
IsFailed(*context.Context) (bool, error) // The workload failed
0 commit comments