Class Job (2.2.0)

Stay organized with collections Save and categorize content based on your preferences.
Job(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Configuration for a job. The maximum allowed size for a job is 100KB.


name str
Optionally caller-specified in CreateJob, after which it becomes output only. The job name. For example: ``projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID``. - ``PROJECT_ID`` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see `Identifying projects
description str
Optionally caller-specified in CreateJob or UpdateJob. A human-readable description for the job. This string must not contain more than 500 characters.
Pub/Sub target.
App Engine HTTP target.
HTTP target.
schedule str
Required, except when used with UpdateJob. Describes the schedule on which the job will be executed. The schedule can be either of the following types: - `Crontab
time_zone str
Specifies the time zone to be used in interpreting schedule. The value of this field must be a time zone name from the `tz database
user_update_time google.protobuf.timestamp_pb2.Timestamp
Output only. The creation time of the job.
Output only. State of the job.
status google.rpc.status_pb2.Status
Output only. The response from the target for the last attempted execution.
schedule_time google.protobuf.timestamp_pb2.Timestamp
Output only. The next time the job is scheduled. Note that this may be a retry of a previously failed attempt or the next execution time according to the schedule.
last_attempt_time google.protobuf.timestamp_pb2.Timestamp
Output only. The time the last job attempt started.
Settings that determine the retry behavior.
attempt_deadline google.protobuf.duration_pb2.Duration
The deadline for job attempts. If the request handler does not respond by this deadline then the request is cancelled and the attempt is marked as a ``DEADLINE_EXCEEDED`` failure. The failed attempt can be viewed in execution logs. Cloud Scheduler will retry the job according to the RetryConfig. The allowed duration for this deadline is: - For [HTTP targets][], between 15 seconds and 30 minutes. - For [App Engine HTTP targets][], between 15 seconds and 24 hours. - For [PubSub targets][], this field is ignored.


builtins.object > proto.message.Message > Job




State of the job.