workflows.v2#
zen_api.workflows.v2
#
Classes:
-
JobStatus–Runtime status of the Job.
-
JobInfo–Information about Job executed by the workflow runner contains a real-time updates and Job's events with Job state.
-
WorkflowServiceGetJobInfoRequest–The WorkflowServiceGetJobInfoRequest class.
-
WorkflowServiceGetJobInfoResponse–Response object representing the job info.
-
WorkflowServiceStartJobRequest–The WorkflowServiceStartJobRequest class.
-
WorkflowServiceStartJobResponse–Response object representing the starting of a job.
-
WorkflowServiceStopJobRequest–The WorkflowServiceStopJobRequest class.
-
WorkflowServiceStopJobResponse–The WorkflowServiceStopJobResponse class.
-
WorkflowServiceWaitJobRequest–The WorkflowServiceWaitJobRequest class.
-
WorkflowServiceWaitJobResponse–The WorkflowServiceWaitJobResponse class.
JobStatus
#
Bases: Enum
Runtime status of the Job.
Attributes:
-
UNSPECIFIED–Default value if status is not specified.
-
RUNNING–Job is currently executed by the workflow runner.
-
PAUSED–Job execution is paused (not supported for now and reserved only for future purposes
-
COMPLETED–Job execution is successfully completed.
-
FAILED–Job execution was failed.
-
CANCELLED–Job execution was interrupted (cancelled).
-
PENDING–Job is created but still not started and waiting for beginning of execution.
UNSPECIFIED
class-attribute
instance-attribute
#
UNSPECIFIED = 0
Default value if status is not specified.
RUNNING
class-attribute
instance-attribute
#
RUNNING = 1
Job is currently executed by the workflow runner.
PAUSED
class-attribute
instance-attribute
#
PAUSED = 2
Job execution is paused (not supported for now and reserved only for future purposes for saving numeration sequence).
COMPLETED
class-attribute
instance-attribute
#
COMPLETED = 3
Job execution is successfully completed.
CANCELLED
class-attribute
instance-attribute
#
CANCELLED = 5
Job execution was interrupted (cancelled).
PENDING
class-attribute
instance-attribute
#
PENDING = 6
Job is created but still not started and waiting for beginning of execution.
JobInfo
dataclass
#
JobInfo(job_id: str = betterproto.string_field(1), create_date: datetime = betterproto.message_field(2), status: JobStatus = betterproto.enum_field(3), start_options: StartJobOptions = betterproto.message_field(4))
Bases: Message
Information about Job executed by the workflow runner contains a real-time updates and Job's events with Job state.
Attributes:
-
job_id(str) –A Job unique runtime ID.
-
create_date(datetime) –A date and time when JobInfo was created.
-
status(JobStatus) –A Job execution state.
-
start_options(StartJobOptions) –A Job starting options.
create_date
class-attribute
instance-attribute
#
create_date: datetime = message_field(2)
A date and time when JobInfo was created.
status
class-attribute
instance-attribute
#
status: JobStatus = enum_field(3)
A Job execution state.
start_options
class-attribute
instance-attribute
#
start_options: StartJobOptions = message_field(4)
A Job starting options.
WorkflowServiceGetJobInfoRequest
dataclass
#
WorkflowServiceGetJobInfoRequest(job_id: str = betterproto.string_field(1))
WorkflowServiceGetJobInfoResponse
dataclass
#
WorkflowServiceGetJobInfoResponse(job_info: JobInfo = betterproto.message_field(1))
WorkflowServiceStartJobRequest
dataclass
#
WorkflowServiceStartJobRequest(job_name: str = betterproto.string_field(1), options: StartJobOptions = betterproto.message_field(2))
Bases: Message
The WorkflowServiceStartJobRequest class.
Attributes:
-
job_name(str) –Job display name.
-
options(StartJobOptions) –Job starting options.
WorkflowServiceStartJobResponse
dataclass
#
WorkflowServiceStartJobResponse(job_info: JobInfo = betterproto.message_field(1))
WorkflowServiceStopJobRequest
dataclass
#
WorkflowServiceStopJobRequest(job_id: str = betterproto.string_field(1))
WorkflowServiceStopJobResponse
dataclass
#
WorkflowServiceStopJobResponse()
Bases: Message
The WorkflowServiceStopJobResponse class.
WorkflowServiceWaitJobRequest
dataclass
#
WorkflowServiceWaitJobRequest(job_id: str = betterproto.string_field(1))
WorkflowServiceWaitJobResponse
dataclass
#
WorkflowServiceWaitJobResponse()
Bases: Message
The WorkflowServiceWaitJobResponse class.