- Add formatted_current_time method to City model. - Modify BatchGenerateWeatherArtsWorker to check local time. - Update Sidekiq scheduler to run every hour. This commit improves the weather art generation by considering local time for image generation and increasing the frequency of batch processing for testing purposes. The new method provides formatted time information for each city. This change ensures that images are generated during daylight hours.
18 lines
386 B
YAML
18 lines
386 B
YAML
batch_generate_weather:
|
|
cron: '0 */1 * * *'
|
|
class: BatchGenerateWeatherArtsWorker
|
|
description: "Batch Generate weather arts"
|
|
enabled: true
|
|
|
|
refresh_sitemap:
|
|
cron: '0 5 * * *'
|
|
class: RefreshSitemapWorker
|
|
queue: default
|
|
description: "Refresh sitemap daily"
|
|
enabled: true
|
|
|
|
clean_ahoy_data:
|
|
cron: '0 0 * * 0'
|
|
class: CleanAhoyDataWorker
|
|
queue: default
|
|
enabled: true |