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:
songtianlun 2025-01-23 09:28:31 +08:00
parent c1fa16c690
commit c529f5fd7b

View File

@ -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