fix: increase sleep duration in weather arts worker

- Change SLEEP_DURATION from 60 seconds to 120 seconds

This change is made to improve resource management
and allow for a more efficient operation of the batch
processing tasks performed by the worker. It helps in
avoiding potential overload on system resources.
This commit is contained in:
songtianlun 2025-01-25 00:41:29 +08:00
parent fe55437c96
commit 9ce473dddb

View File

@ -3,7 +3,7 @@ class BatchGenerateWeatherArtsWorker
GENERATION_INTERVAL = 24.hours GENERATION_INTERVAL = 24.hours
MAX_DURATION = 50.minutes MAX_DURATION = 50.minutes
SLEEP_DURATION = 60.seconds SLEEP_DURATION = 120.seconds
def perform(*args) def perform(*args)
start_time = Time.current start_time = Time.current