Skip to content

Commit

Permalink
Merge pull request #267 from futurice/update-data-dump-update-scheduling
Browse files Browse the repository at this point in the history
Update data dump update scheduling
  • Loading branch information
jareware authored Apr 24, 2020
2 parents 87fcf74 + 19687b3 commit 3b1ff00
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 * 5 # i.e. 5 minutes
schedule_expression = "rate(15 minutes)" # note: full cron expressions are also supported
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
lambda_logging_enabled = true
function_env_vars = local.lambda_env
}
Expand Down

0 comments on commit 3b1ff00

Please sign in to comment.