- Removed conditional check for production environment in the initializer to ensure the sitemap refresh worker always runs at startup. - Renamed Sidekiq configuration file from sidekiq.yml to sidekiq_scheduler.yml to better reflect its purpose. These changes streamline the initialization process for scheduled tasks and enhance the clarity of the configuration files used in the project.
12 lines
294 B
YAML
12 lines
294 B
YAML
batch_generate_weather:
|
|
cron: '0 */1 * * *'
|
|
class: BatchGenerateWeatherArtsWorker
|
|
description: "Generate weather arts every 2 hours"
|
|
enabled: true
|
|
|
|
refresh_sitemap:
|
|
cron: '0 5 * * *'
|
|
class: RefreshSitemapWorker
|
|
queue: default
|
|
description: "Refresh sitemap daily"
|
|
enabled: true |