Skip to content

Commit 3e8b9e6

Browse files
authored
Merge pull request #315 from futurice/worker-process-runs-less-frequently
Change backend worker process to run once per day
2 parents 62117ee + 3f160a8 commit 3e8b9e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

infra/modules/main/backend.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ module "backend_worker" {
4949
function_s3_bucket = aws_s3_bucket.backend_code.id
5050
function_zipfile = "backend-lambda.zip"
5151
function_handler = "index.workerEntrypoint"
52-
function_timeout = 60 * 10 # i.e. 10 minutes
53-
schedule_expression = "cron(0 0,6,12,18 * * ? *)" # as in (Minutes Hours Day-of-month Month Day-of-week Year); see https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html
52+
function_timeout = 60 * 10 # i.e. 10 minutes
53+
schedule_expression = "cron(0 3 * * ? *)" # as in (Minutes Hours Day-of-month Month Day-of-week Year); see https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html
5454
lambda_logging_enabled = true
5555
function_env_vars = local.lambda_env
5656
}

0 commit comments

Comments
 (0)