Skip to content

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
@lucix-aws lucix-aws added do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. and removed do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. labels Apr 7, 2025
@alquerci alquerci force-pushed the feat-job-schedule-job-at-specific-timezone branch from 30680f5 to d9f00d1 Compare July 17, 2025 00:40
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

2 participants