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

feat(job): schedule job at specific timezone #6011

Open
wants to merge 1 commit into
base: mainline
Choose a base branch
from

Conversation

alquerci
Copy link

@alquerci alquerci commented Feb 17, 2025

Fixes #4604

Summary of changes

  • Full code coverage, from unit to integration
  • EventBridge Schedule that replace CloudWatch Event Rule.
  • UTC as default time zone
  • Allowing expression like 'at(2022-11-20T13:00:00)'
  • To handle issue: CloudFormation reject resource type modification
    • Resource Rule renamed to Schedule
    • Resource RuleRole renamed to ScheduleRole
    • Regarding of backward compatibility policy, this may be a BC break
  • Configurable on manifest.yml but not during job init
  • Reference to the documentation
# job manifest.yml

# Trigger for your task.
on:
  # The scheduled trigger for your job. You can specify a Unix cron schedule or keyword (@weekly) or a rate (@every 1h30m)
  # AWS Schedule Expressions are also accepted: https://docs.aws.amazon.com/scheduler/latest/UserGuide/schedule-types.html
  schedule: "rate(5 minutes)"

  # The timezone in which the scheduling expression is evaluated.
  # You can specify a time location like (America/New_York) or like (CET)
  # More details: https://docs.aws.amazon.com/scheduler/latest/UserGuide/schedule-types.html#time-zones
  timezone: "UTC"

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.

@alquerci alquerci requested a review from a team as a code owner February 17, 2025 21:51
@alquerci alquerci requested review from efekarakus and removed request for a team February 17, 2025 21:51
@alquerci alquerci force-pushed the feat-job-schedule-job-at-specific-timezone branch from ebc70e4 to 30680f5 Compare February 17, 2025 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The use can specify the timezone of the schedule expression in Scheduled Job
1 participant