Skip to content

Commit

Permalink
Use cleaning queue
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg-vr committed Nov 7, 2023
1 parent 9e43f72 commit e7527aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/jobs/remove_activities_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class RemoveActivitiesJob < ApplicationJob
# Destroy is called on each activity individually to ensure that callbacks are run
# This means the activity will be removed from any series, evaluations it is a member of
# and any submissions will be removed
queue_as :cron
queue_as :cleaning

Check warning on line 12 in app/jobs/remove_activities_job.rb

View check run for this annotation

Codecov / codecov/patch

app/jobs/remove_activities_job.rb#L12

Added line #L12 was not covered by tests

def perform
ContentPage.where(status: 'removed').where('updated_at < ?', 1.month.ago).find_each do |activity|
Expand Down
2 changes: 1 addition & 1 deletion config/deploy/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
set :delayed_job_pools_per_server,
'dodona' => {
'default,statistics,exports,cleaning' => 2,
'git,cron' => 1,
'git' => 1,
},
'sisyphus' => {
'submissions,low_priority_submissions,high_priority_submissions' => 6
Expand Down

0 comments on commit e7527aa

Please sign in to comment.