Workload

class caliber.Workload(workflow: str | None = None, workflow_name: str | None = None, **kwargs)[source]

A container for a workflow passed to a workflow queue. Note that the workload is initialized by the workflow.

Parameters:
  • pinion_name (str) – The name of the pinion that should collect the workload.

  • workflow (str) – The Speckle object id of the workflow that should be included in the workload.

  • workflow_name (str) – The name of the workflow.

reset_run_secret() None[source]

Reset the run secret of the Workload object.

restore_attached_files() None[source]

Restore the files that are attached to the Workload.

get_timestamp() str[source]

Get a string representation of the timestamp.

to_dict() Dict[source]

Return dictionary representation of the Workload object.