[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect TimeZone in scheduled functions #3434

Merged
merged 2 commits into from
Jun 1, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add regression test
  • Loading branch information
inlined committed Jun 1, 2021
commit ecff528869aa99f01f696aa10c872e51912cde8d
2 changes: 2 additions & 0 deletions src/test/deploy/functions/backend.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,7 @@ describe("Backend", () => {
backend.toJob(
{
...SCHEDULE,
timeZone: "America/Los_Angeles",
retryConfig: {
maxDoublings: 2,
maxBackoffDuration: "20s",
Expand All @@ -652,6 +653,7 @@ describe("Backend", () => {
).to.deep.equal({
name: "projects/project/locations/appEngineLocation/jobs/firebase-schedule-id-region",
schedule: "every 1 minutes",
timeZone: "America/Los_Angeles",
retryConfig: {
maxDoublings: 2,
maxBackoffDuration: "20s",
Expand Down