Skip to content

Commit

Permalink
Add authorization headers and deadline for job attempts (via synth). (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and busunkim96 committed May 13, 2019
1 parent 53e492c commit f8e4ead
Show file tree
Hide file tree
Showing 7 changed files with 408 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ syntax = "proto3";
package google.cloud.scheduler.v1;

import "google/api/annotations.proto";
import "google/api/resource.proto";
import "google/cloud/scheduler/v1/job.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
Expand All @@ -28,7 +29,6 @@ option java_outer_classname = "SchedulerProto";
option java_package = "com.google.cloud.scheduler.v1";
option objc_class_prefix = "SCHEDULER";


// The Cloud Scheduler API allows external entities to reliably
// schedule asynchronous jobs.
service CloudScheduler {
Expand Down
44 changes: 23 additions & 21 deletions scheduler/google/cloud/scheduler_v1/proto/cloudscheduler_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion scheduler/google/cloud/scheduler_v1/proto/job.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ syntax = "proto3";
package google.cloud.scheduler.v1;

import "google/api/annotations.proto";
import "google/api/resource.proto";
import "google/cloud/scheduler/v1/target.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
Expand All @@ -28,7 +29,6 @@ option java_multiple_files = true;
option java_outer_classname = "JobProto";
option java_package = "com.google.cloud.scheduler.v1";


// Configuration for a job.
// The maximum allowed size for a job is 100KB.
message Job {
Expand Down Expand Up @@ -150,6 +150,18 @@ message Job {

// Settings that determine the retry behavior.
RetryConfig retry_config = 19;

// 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][google.cloud.scheduler.v1.RetryConfig].
//
// The allowed duration for this deadline is:
// * For [HTTP targets][google.cloud.scheduler.v1.Job.http_target], between 15 seconds and 30 minutes.
// * For [App Engine HTTP targets][google.cloud.scheduler.v1.Job.app_engine_http_target], between 15
// seconds and 24 hours.
google.protobuf.Duration attempt_deadline = 22;
}

// Settings that determine the retry behavior.
Expand Down
49 changes: 42 additions & 7 deletions scheduler/google/cloud/scheduler_v1/proto/job_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f8e4ead

Please sign in to comment.