Skip to content

Commit 581656e

Browse files
committed
Add a commented out template for recurring.yml configuration
1 parent c6f38b3 commit 581656e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

lib/generators/solid_queue/install/install_generator.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ class SolidQueue::InstallGenerator < Rails::Generators::Base
55

66
def copy_files
77
template "config/queue.yml"
8+
template "config/recurring.yml"
89
template "db/queue_schema.rb"
910
template "bin/jobs"
1011
chmod "bin/jobs", 0755 & ~File.umask, verbose: false
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# periodic_cleanup:
2+
# class: CleanSoftDeletedRecordsJob
3+
# queue: background
4+
# args: [ 1000, { batch_size: 500 } ]
5+
# schedule: every hour
6+
# periodic_command:
7+
# command: "SoftDeletedRecord.due.delete_all"
8+
# priority: 2
9+
# schedule: at 5am every day

0 commit comments

Comments
 (0)