Class Job (1.13.0)

Job(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A job represents an instance of a task.

Attributes

NameDescription
name str
Output only. The relative resource name of the job, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}.
uid str
Output only. System generated globally unique ID for the job.
start_time google.protobuf.timestamp_pb2.Timestamp
Output only. The time when the job was started.
end_time google.protobuf.timestamp_pb2.Timestamp
Output only. The time when the job ended.
state google.cloud.dataplex_v1.types.Job.State
Output only. Execution state for the job.
retry_count int
Output only. The number of times the job has been retried (excluding the initial attempt).
service google.cloud.dataplex_v1.types.Job.Service
Output only. The underlying service running a job.
service_job str
Output only. The full resource name for the job run under a particular service.
message str
Output only. Additional information about the current state.
labels MutableMapping[str, str]
Output only. User-defined labels for the task.
trigger google.cloud.dataplex_v1.types.Job.Trigger
Output only. Job execution trigger.
execution_spec google.cloud.dataplex_v1.types.Task.ExecutionSpec
Output only. Spec related to how a task is executed.

Classes

LabelsEntry

LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

Service

Service(value)

Values: SERVICE_UNSPECIFIED (0): Service used to run the job is unspecified. DATAPROC (1): Dataproc service is used to run this job.

State

State(value)

Values: STATE_UNSPECIFIED (0): The job state is unknown. RUNNING (1): The job is running. CANCELLING (2): The job is cancelling. CANCELLED (3): The job cancellation was successful. SUCCEEDED (4): The job completed successfully. FAILED (5): The job is no longer running due to an error. ABORTED (6): The job was cancelled outside of Dataplex.

Trigger

Trigger(value)

Job execution trigger.

Values: TRIGGER_UNSPECIFIED (0): The trigger is unspecified. TASK_CONFIG (1): The job was triggered by Dataplex based on trigger spec from task definition. RUN_REQUEST (2): The job was triggered by the explicit call of Task API.