fix: update generation interval for weather arts
- Change generation interval from 36 hours to 365 days - Commented out the old interval for reference This update significantly extends the generation interval for weather arts, ensuring that the batch generation process is more efficient and less frequent. The old interval has been kept as a comment to provide context for future references.
This commit is contained in:
parent
cb8e5dd57d
commit
81c1d33036
@ -1,7 +1,8 @@
|
|||||||
class BatchGenerateWeatherArtsWorker
|
class BatchGenerateWeatherArtsWorker
|
||||||
include Sidekiq::Worker
|
include Sidekiq::Worker
|
||||||
|
|
||||||
GENERATION_INTERVAL = 36.hours
|
GENERATION_INTERVAL = 365.days
|
||||||
|
# GENERATION_INTERVAL = 36.hours
|
||||||
MAX_DURATION = 30.minutes
|
MAX_DURATION = 30.minutes
|
||||||
SLEEP_DURATION = 120.seconds
|
SLEEP_DURATION = 120.seconds
|
||||||
DAILY_GENERATION_LIMIT = 60 # 每日生成图片上限
|
DAILY_GENERATION_LIMIT = 60 # 每日生成图片上限
|
||||||
|
Loading…
Reference in New Issue
Block a user