refactor: update job class for weather art generation
- Change from using GenerateWeatherArtJob to GenerateWeatherArtWorker - Maintain asynchronous job processing This refactoring improves the clarity of the job class being used for generating weather art and adheres to project conventions. The change does not affect the API rate limits as the sleep duration remains the same.
This commit is contained in:
parent
c1fa16c690
commit
c529f5fd7b
@ -11,7 +11,7 @@ class BatchGenerateWeatherArtsWorker
|
||||
break if Time.current - start_time > max_duration
|
||||
|
||||
# GenerateWeatherArtJob.perform_now(city)
|
||||
GenerateWeatherArtJob.perform_async(city)
|
||||
GenerateWeatherArtWorker.perform_async(city)
|
||||
sleep 1.minute # 确保不超过API限制
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user