CoreAction

class qctrl.dynamic.types.CoreAction(*, created_at=None, definition=None, errors=None, job_data=None, job_id=None, model_id=None, model_type=None, mutation_name=None, name=None, progress=None, result=None, runtime=None, started_at=None, status=None, tasks=None, terminated_at=None, updated_at=None, user=None)

Metadata about the execution of a core function.

Variables
  • created_at (datetime.datetime, optional) – The time the action was created at.

  • definition (dict, optional) – The definition (input) of the calculation to be executed.

  • errors (qctrl.dynamic.types.ActionError, optional) – The details of errors on the action if any occurs.

  • job_data (qctrl.dynamic.types.JobData, optional) – The job data dictionary.

  • job_id (str, optional) – The identifier for the remote task.

  • model_id (str, optional) – The id of the action in the database.

  • model_type (qctrl.dynamic.types.ActionTypeEnum, optional) – The type of action.

  • mutation_name (str, optional) – The name of the mutation.

  • name (str, optional) – The name of the action.

  • progress (float, optional) – The progress of the task. Returns null if the progress cannot be calculated.

  • result (dict, optional) – The result of the calculation.

  • runtime (float, optional) – The amount of time spent calculating the action.

  • started_at (datetime.datetime, optional) – The time the action was started at.

  • status (qctrl.dynamic.types.ActionStatusEnum, optional) – The status of the job associated with the action.

  • tasks (List[qctrl.dynamic.types.Task], optional) – The associated tasks for this action.

  • terminated_at (datetime.datetime, optional) – The time the action was terminated at.

  • updated_at (datetime.datetime, optional) – The time the action was last update at.

  • user (qctrl.dynamic.types.User, optional) – The user associated with this action.