Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: Fix Sidekiq #46

Merged
merged 4 commits into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ jobs:
key: asset-cache-${{ runner.os }}-${{ steps.cache-hash.outputs.hash }}
- run: mkdir -p ./spec/tmp/screenshots
name: Create the screenshots folder
# TODO: Use latest version
- uses: nanasess/setup-chromedriver@v2
with:
chromedriver-version: "114.0.5735.90"
- run: bundle exec rake "test:run[exclude, spec/system/**/*_spec.rb, ${{ matrix.slice }}]"
name: RSpec
- run: ./.github/upload_coverage.sh decidim-app $GITHUB_EVENT_PATH
Expand Down Expand Up @@ -156,10 +152,6 @@ jobs:
key: asset-cache-${{ runner.os }}-${{ steps.cache-hash.outputs.hash }}
- run: mkdir -p ./spec/tmp/screenshots
name: Create the screenshots folder
# TODO: Use latest version
- uses: nanasess/setup-chromedriver@v2
with:
chromedriver-version: "114.0.5735.90"
- run: bundle exec rake "test:run[include, spec/system/**/*_spec.rb, ${{ matrix.slice }}]"
name: RSpec
- run: ./.github/upload_coverage.sh decidim-app $GITHUB_EVENT_PATH
Expand Down
21 changes: 13 additions & 8 deletions config/sidekiq.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
:concurrency: 5
:queues:
- mailers
- default
- backups
- metrics
- mailers
- newsletter
- events
- newsletter
- exports
- user_report
- block_user
- scheduled
- translations
- metrics
- vote_reminder
- reminders

:scheduler:
:schedule:
CalculateAllMetrics:
cron: '0 0 0 * * *' # Run at midnight
cron: '0 9 0 * * *' # Run at 00:09
class: CalculateAllMetricsJob
queue: scheduled
PreloadOpenData:
cron: '0 0 1 * * *' # Run at 01:00
class: PreloadOpenDataJob
queue: scheduled
OrdersReminder:
cron: '0 0 18 * * *' # Run at 18:00
class: OrdersReminderJob
DetectSpamUsers:
cron: '0 <%= Random.rand(0..59) %> <%= Random.rand(6..8) %> * * *' # Run randomly between 06:00 and 08:59
class: Decidim::SpamDetection::MarkUsersJob
queue: scheduled
Backup:
cron: '0 0 4 * * *' # Run at 04:00
class: BackupJob
queue: backups