Skip to content

Commit

Permalink
backport: Add missing jobs for initiatives rake tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
AyakorK committed Dec 30, 2024
1 parent eee6539 commit 90a1045
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/jobs/check_published_initiatives.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

class CheckPublishedInitiatives < ApplicationJob
def perform
system "rake decidim_initiatives:check_published"
end
end
7 changes: 7 additions & 0 deletions app/jobs/check_validating_initiatives.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

class CheckValidatingInitiatives < ApplicationJob
def perform
system "rake decidim_initiatives:check_validating"
end
end
7 changes: 7 additions & 0 deletions app/jobs/notify_progress_initiatives.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

class NotifyProgressInitiatives < ApplicationJob
def perform
system "rake decidim_initiatives:notify_progress"
end
end
13 changes: 13 additions & 0 deletions config/sidekiq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- metrics
- vote_reminder
- reminders
- initiatives

:scheduler:
:schedule:
Expand Down Expand Up @@ -48,3 +49,15 @@
cron: '0 5 0 * * 6' # Run at 00:05 on Saturday
class: SendNotificationMailWeeklyJob
queue: mailers
CheckPublishedInitiatives:
cron: '0 1 * * *'
class: CheckPublishedInitiatives
queue: initiatives
CheckValidatingInitiatives:
cron: '0 1 * * *'
class: CheckValidatingInitiatives
queue: initiatives
NotifyProgressInitiatives:
cron: '0 1 * * *'
class: NotifyProgressInitiatives
queue: initiatives

0 comments on commit 90a1045

Please sign in to comment.