chore: update sleep duration for weather arts worker
- Increase SLEEP_DURATION from 10 seconds to 60 seconds This change modifies the sleep duration used in the BatchGenerateWeatherArtsWorker class, allowing for longer wait times between executions. This may help prevent exceeding resource limits during high-demand periods.
This commit is contained in:
parent
2aad3ec5b4
commit
d8a2600998
@ -3,7 +3,7 @@ class BatchGenerateWeatherArtsWorker
|
||||
|
||||
GENERATION_INTERVAL = 36.hours
|
||||
MAX_DURATION = 5.minutes
|
||||
SLEEP_DURATION = 10.seconds
|
||||
SLEEP_DURATION = 60.seconds
|
||||
DAILY_GENERATION_LIMIT = 60 # 每日生成图片上限
|
||||
PER_RUN_GENERATION_LIMIT = 2 # 每次运行生成图片上限
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user