Skip to content

Commit

Permalink
Update __main__.py
Browse files Browse the repository at this point in the history
Signed-off-by: Edoardo Rosa <[email protected]>
  • Loading branch information
notdodo authored Dec 9, 2024
1 parent d74d2e7 commit 6618f0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pulumi/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
SYNC_MINUTES_RATE_NORMAL = 24 * 60 # Once a day
SYNC_MINUTES_RATE_MEDIUM = 2 * 60 # Every two hours
SYNC_MINUTES_RATE_EMERGENCY = 20
EMERGENCY = True
EMERGENCY = False
CUSTOM_DOMAIN_NAME = "erfiume.thedodo.xyz"

stazioni_table = dynamodb.Table(
Expand Down Expand Up @@ -181,7 +181,7 @@
mode="FLEXIBLE",
maximum_window_in_minutes=5,
),
schedule_expression=f"rate({SYNC_MINUTES_RATE_EMERGENCY if EMERGENCY else SYNC_MINUTES_RATE_NORMAL} minutes)",
schedule_expression=f"rate({SYNC_MINUTES_RATE_EMERGENCY if EMERGENCY else SYNC_MINUTES_RATE_MEDIUM} minutes)",
schedule_expression_timezone="Europe/Rome",
target=scheduler.ScheduleTargetArgs(
arn=fetcher_lambda.arn,
Expand Down

0 comments on commit 6618f0c

Please sign in to comment.