1
0
mirror of https://github.com/1C-Company/v8-code-style.git synced 2024-12-14 14:10:09 +02:00
v8-code-style/bundles/com.e1c.v8codestyle.md/markdown/scheduled-job-periodicity-too-short.md
RedMammoth 916bac491e
Периодичность выполнения регламентного задания меньше одной минуты (#916)
* #38 Проверка периодичности выполнения регламентного задания
2022-01-11 22:04:18 +02:00

20 lines
988 B
Markdown

# The minimum job interval is 1 minute
The minimum job interval is 1 minute.
## Noncompliant Code Example
## Compliant Solution
- A scheduled job must be executed just frequently enough to properly serve its objectives.
- For optimal server performance, the default scheduled job interval is 24 hours.
- Some job can be executed more often to keep important data up-to-date.
- The minimum job interval is 1 minute.
- The interval of a scheduled job has to be reasonably balanced with the job run time. For example, if the run time is 20 seconds, running the job every minute is unreasonably often.
- Whenever possible, schedule resource-intensive scheduled jobs during the server low-load hours. For example, during off-hours or off days.
- Schedule resource-intensive jobs in sequence. Consider the expected run time to avoid the job overlap.
## See
[Configuring scheduled job schedules](https://support.1ci.com/hc/en-us/articles/360011001440-Configuring-scheduled-job-schedules)