diff --git a/pulumi/__main__.py b/pulumi/__main__.py index a203563..ca70fd2 100644 --- a/pulumi/__main__.py +++ b/pulumi/__main__.py @@ -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( @@ -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,