Skip to content

Commit

Permalink
Merge pull request #315 from futurice/worker-process-runs-less-freque…
Browse files Browse the repository at this point in the history
…ntly

Change backend worker process to run once per day
  • Loading branch information
nathandao authored May 25, 2020
2 parents 62117ee + 3f160a8 commit 3e8b9e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infra/modules/main/backend.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ module "backend_worker" {
function_s3_bucket = aws_s3_bucket.backend_code.id
function_zipfile = "backend-lambda.zip"
function_handler = "index.workerEntrypoint"
function_timeout = 60 * 10 # i.e. 10 minutes
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
function_timeout = 60 * 10 # i.e. 10 minutes
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
lambda_logging_enabled = true
function_env_vars = local.lambda_env
}
Expand Down

0 comments on commit 3e8b9e6

Please sign in to comment.