Skip to content

Commit 2c700ba

Browse files
committed
MNT: Delay packet downloader cron job
The POC has indicated that there could be a delay between when the file arrives and when it gets ingested and available in the database. I think this means there could still potentially be a further delay so lets not push it too close to the 0/6/12/18 boundaries and give it 20 minutes buffer to fill the database after each request.
1 parent 69869e7 commit 2c700ba

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sds_data_manager/constructs/packet_downloader_lambda_construct.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ def __init__(
100100
rule = aws_events.Rule(
101101
self,
102102
"PacketDownloaderScheduleRule",
103-
# Every 6 hours at 5 minutes past the hour
103+
# Every 6 hours at 20 minutes past the hour
104104
# 00:00 -> 06:00, 06:00 -> 12:00, 12:00 -> 18:00, 18:00 -> 00:00
105-
schedule=cdk.aws_events.Schedule.cron(minute="5", hour="*/6"),
105+
schedule=cdk.aws_events.Schedule.cron(minute="20", hour="*/6"),
106106
)
107107
rule.add_target(cdk.aws_events_targets.LambdaFunction(packet_lambda))

0 commit comments

Comments
 (0)