@@ -16,6 +16,7 @@ syntax = "proto3";
1616
1717package google.cloud.scheduler.v1 ;
1818
19+ import "google/api/field_behavior.proto" ;
1920import "google/api/resource.proto" ;
2021import "google/cloud/scheduler/v1/target.proto" ;
2122import "google/protobuf/duration.proto" ;
@@ -33,6 +34,8 @@ message Job {
3334 option (google.api.resource ) = {
3435 type : "cloudscheduler.googleapis.com/Job"
3536 pattern : "projects/{project}/locations/{location}/jobs/{job}"
37+ plural : "jobs"
38+ singular : "job"
3639 };
3740
3841 // State of the job.
@@ -125,7 +128,11 @@ message Job {
125128 // If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and
126129 // a job attempt fails, the job will be tried a total of
127130 // [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times,
128- // with exponential backoff, until the next scheduled start time.
131+ // with exponential backoff, until the next scheduled start time. If
132+ // retry_count is 0, a job attempt will not be retried if it fails. Instead
133+ // the Cloud Scheduler system will wait for the next scheduled execution time.
134+ // Setting retry_count to 0 does not prevent failed jobs from running
135+ // according to schedule after the failure.
129136 string schedule = 20 ;
130137
131138 // Specifies the time zone to be used in interpreting
@@ -141,21 +148,24 @@ message Job {
141148 string time_zone = 21 ;
142149
143150 // Output only. The creation time of the job.
144- google.protobuf.Timestamp user_update_time = 9 ;
151+ google.protobuf.Timestamp user_update_time = 9
152+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
145153
146154 // Output only. State of the job.
147- State state = 10 ;
155+ State state = 10 [ (google.api .field_behavior ) = OUTPUT_ONLY ] ;
148156
149157 // Output only. The response from the target for the last attempted execution.
150- google.rpc.Status status = 11 ;
158+ google.rpc.Status status = 11 [ (google.api .field_behavior ) = OUTPUT_ONLY ] ;
151159
152160 // Output only. The next time the job is scheduled. Note that this may be a
153161 // retry of a previously failed attempt or the next execution time
154162 // according to the schedule.
155- google.protobuf.Timestamp schedule_time = 17 ;
163+ google.protobuf.Timestamp schedule_time = 17
164+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
156165
157166 // Output only. The time the last job attempt started.
158- google.protobuf.Timestamp last_attempt_time = 18 ;
167+ google.protobuf.Timestamp last_attempt_time = 18
168+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
159169
160170 // Settings that determine the retry behavior.
161171 RetryConfig retry_config = 19 ;
@@ -198,9 +208,10 @@ message RetryConfig {
198208 //
199209 // The default value of retry_count is zero.
200210 //
201- // If retry_count is zero , a job attempt will * not* be retried if
211+ // If retry_count is 0 , a job attempt will not be retried if
202212 // it fails. Instead the Cloud Scheduler system will wait for the
203- // next scheduled execution time.
213+ // next scheduled execution time. Setting retry_count to 0 does not prevent
214+ // failed jobs from running according to schedule after the failure.
204215 //
205216 // If retry_count is set to a non-zero number then Cloud Scheduler
206217 // will retry failed attempts, using exponential backoff,
@@ -245,7 +256,7 @@ message RetryConfig {
245256 // [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration]
246257 // is 10s,
247258 // [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration]
248- // is 300s, and `max_doublings` is 3, then the a job will first be retried in
259+ // is 300s, and `max_doublings` is 3, then the job will first be retried in
249260 // 10s. The retry interval will double three times, and then increase linearly
250261 // by 2^3 * 10s. Finally, the job will retry at intervals of
251262 // [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration]
0 commit comments