fix: reduce sleep time in weather arts worker
- Change sleep duration from 1 minute to 10 seconds in BatchGenerateWeatherArtsWorker. This change addresses API limitations by reducing the wait time between job submissions, thereby increasing the efficiency of the batch processing for generating weather arts.
This commit is contained in:
parent
dffac6c665
commit
5fa49d97ca
@ -12,7 +12,7 @@ class BatchGenerateWeatherArtsWorker
|
|||||||
|
|
||||||
# GenerateWeatherArtJob.perform_now(city)
|
# GenerateWeatherArtJob.perform_now(city)
|
||||||
GenerateWeatherArtWorker.perform_async(city.id)
|
GenerateWeatherArtWorker.perform_async(city.id)
|
||||||
sleep 1.minute # 确保不超过API限制
|
sleep 10.seconds
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user