Skip to content

Commit

Permalink
chore(readme): clarify cron expression in readme (#2923)
Browse files Browse the repository at this point in the history
chore(readme): clarify cron expression in readme (addresses #1690)
  • Loading branch information
FraBle authored Feb 10, 2023
1 parent 9b8f88b commit e8cae3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ The pool is NOT enabled by default and can be enabled by setting at least one ob

### Idle runners

The module will scale down to zero runners by default. By specifying a `idle_config` config, idle runners can be kept active. The scale down lambda checks if any of the cron expressions matches the current time with a margin of 5 seconds. When there is a match, the number of runners specified in the idle config will be kept active. In case multiple cron expressions matches, only the first one is taken into account. Below is an idle configuration for keeping runners active from 9 to 5 on working days.
The module will scale down to zero runners by default. By specifying a `idle_config` config, idle runners can be kept active. The scale down lambda checks if any of the cron expressions matches the current time with a margin of 5 seconds. When there is a match, the number of runners specified in the idle config will be kept active. In case multiple cron expressions matches, only the first one is taken into account. Below is an idle configuration for keeping runners active from 9:00am to 5:59pm on working days. The [cron expression generator by Cronhub](https://crontab.cronhub.io/) is a great resource to set up your idle config.

```hcl
idle_config = [{
Expand Down

0 comments on commit e8cae3a

Please sign in to comment.