Skip to content

Commit 58b1bb1

Browse files
committed
Migrate to Solid Queue 0.9.x and split config files
With Solid Queue 0.9.0, the configuration is split into two files (`queue.yml` and `recurring.yml`)
1 parent bc218e4 commit 58b1bb1

3 files changed

Lines changed: 13 additions & 8 deletions

File tree

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ GEM
528528
rexml (~> 3.2)
529529
rubocop (>= 1.0, < 2.0)
530530
slim (>= 3.0, < 6.0)
531-
solid_queue (0.8.2)
531+
solid_queue (0.9.0)
532532
activejob (>= 7.1)
533533
activerecord (>= 7.1)
534534
concurrent-ruby (>= 1.3.1)
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,3 @@ test:
1616

1717
production:
1818
<<: *default
19-
dispatchers:
20-
- polling_interval: 1
21-
batch_size: 500
22-
recurring_tasks:
23-
nbp_sync_all_job:
24-
class: NbpSyncAllJob
25-
schedule: "0 3 * * *"

config/recurring.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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
10+
nbp_sync_all_job:
11+
class: NbpSyncAllJob
12+
schedule: at 3am every day

0 commit comments

Comments
 (0)