Skip to content

Commit

Permalink
Introduce time zone setting for schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
seanpertet committed Jul 5, 2024
1 parent 1703324 commit ff87488
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions stacks/gcp/GcpStack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export default class GcpStack extends TerraformStack {
new CloudSchedulerJob(this, "scheduler-" + func.name, {
name: func.name,
schedule: func.schedule,
timeZone: func.timeZone,
pubsubTarget: {
topicName: `projects/${this.options.gcpOptions.project}/topics/${scheduledTopic.name}`,
data: "c2NoZWR1bGU=",
Expand Down
1 change: 1 addition & 0 deletions types/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export type EventConfig = {
export type ScheduleConfig = {
type: "schedule";
schedule: string;
timeZone?: string;
} & FunctionConfig;

export type QueueConfig = {
Expand Down

0 comments on commit ff87488

Please sign in to comment.