- class weaver.processes.wps3_process.Wps3RemoteJobProgress
Progress of a remotely monitored WPS-1 job process execution.
Implementations can reuse same progress values or intermediate ones within the range of the relevant sections.
- PROVIDER = 1
- PREPARE = 2
- DEPLOY = 3
- VISIBLE = 4
- READY = 5
- EXECUTION = 9
- MONITORING = 10
- FETCH_OUT = 90
- COMPLETED = 100
- class weaver.processes.wps3_process.Wps3Process(step_payload: weaver.typedefs.JSON, joborder: weaver.typedefs.JSON, process: str, request: weaver.wps.service.WorkerRequest, update_status: weaver.typedefs.UpdateStatusPartialFunction)
Multiple convenience methods are provide. Processes inheriting from this base should provide abstract method implementation as needed or required.
For expected operations details and their execution order, please refer to Workflow Step Operations.
execute()for complete details of the operations and ordering.
- resolve_data_source(self, step_payload, joborder)
- get_auth_headers(self) weaver.typedefs.AnyHeadersContainer
- is_visible(self: Ellipsis) Union[bool, None]
Gets the process visibility.
True/False correspondingly for public/private if visibility is retrievable, False if authorized access but process cannot be found, None if forbidden access.
- set_visibility(self, visibility)
This is an optional step that can be omitted entirely if not needed.
- format_outputs(self: weaver.typedefs.JobOutputs, workflow_outputs) weaver.typedefs.JobOutputs
Implementation dependent operations to configure expected outputs for Job execution.
This is an optional step that will simply pass down the outputs as is if no formatting is required. Otherwise, the implementing Process can override the step to reorganize workflow step outputs into the necessary format required for their
- dispatch(self: weaver.typedefs.JobInputs, process_inputs: weaver.typedefs.JobOutputs, process_outputs) Any
reference details that will be passed to
- monitor(self: str, monitor_reference) bool
Implementation dependent operations to monitor the status of the Job execution that was dispatched.
This step should block
execute()until the final status of the remote Job (failed/success) can be obtained.
- get_job_status(self: weaver.typedefs.JobMonitorReference, job_status_uri: Union[bool, int], retry=True) weaver.typedefs.JSON
Obtains the contents from the Job status response.