- Removed unnecessary queue configurations from Sidekiq configuration - Added 'whenever' gem and its necessary dependencies for adding cron jobs - Updated Docker workflow to cache Docker layers using actions/cache This update improves the efficiency of CI/CD pipelines by caching Docker layers, which will help in reducing the time taken for the build process. Additionally, the changes in the Gemfile and the config/sidekiq.yml configuration will enable the project to run cron jobs for tasks like generating weather arts.
6 lines
155 B
YAML
6 lines
155 B
YAML
batch_generate_weather:
|
|
cron: '0 */2 * * *'
|
|
class: BatchGenerateWeatherArtsWorker
|
|
description: "Generate weather arts every 2 hours"
|
|
enabled: true
|