add random offset to fetch-time

to avoid peak loads at the service providers
This commit is contained in:
mampfes
2020-05-02 09:52:54 +02:00
parent e588003c0f
commit a0e2850725

View File

@@ -51,6 +51,7 @@ waste_collection_schedule:
sources:
- name: SOURCE
fetch_time: FETCH_TIME
random_fetch_time_offset: RANDOM_FETCH_TIME_OFFSET
day_switch_time: DAY_SWITCH_TIME
separator: SEPARATOR
args:
@@ -79,6 +80,11 @@ Name of the source. Equates to the file name (without ```.py```) of the source.
Time of day when to fetch new data from the source. Data will be fetched once per day.
**random_fetch_time_offset**<br>
*(int) (optional, default: ```60```)*
Random offset to the `fetch_time` in minutes. Used to distribute the fetch commands of all HO instances over a large period of time to avoid peak loads at the service providers.
**day_switch_time**<br>
*(time) (optional, default: ```"10:00"```)*