Skip to content

Commit

Permalink
Change recurring.yml to run cleanup
Browse files Browse the repository at this point in the history
This runs the SolidQueue::Job.clear_finished_in_batches by default.
  • Loading branch information
ksylvest committed Oct 18, 2024
1 parent b001117 commit 4c817ff
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions lib/generators/solid_queue/install/templates/config/recurring.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# production:
# periodic_cleanup:
# class: CleanSoftDeletedRecordsJob
# queue: background
# args: [ 1000, { batch_size: 500 } ]
# schedule: every hour
# periodic_command:
# command: "SoftDeletedRecord.due.delete_all"
# priority: 2
# schedule: at 5am every day
production:
solid_queue_cleanup:
command: "SolidQueue::Job.clear_finished_in_batches"
schedule: every hour

# periodic_cleanup:
# class: CleanSoftDeletedRecordsJob
# queue: background
# args: [ 1000, { batch_size: 500 } ]
# schedule: every hour

# periodic_command:
# command: "SoftDeletedRecord.due.delete_all"
# priority: 2
# schedule: at 5am every day

0 comments on commit 4c817ff

Please sign in to comment.