Skip to content

Commit

Permalink
Migrate to Solid Queue 0.9.x and split config files
Browse files Browse the repository at this point in the history
With Solid Queue 0.9.0, the configuration is split into two files (`queue.yml` and `recurring.yml`)
  • Loading branch information
MrSerth committed Oct 7, 2024
1 parent 22f7e18 commit a91b0e2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ GEM
rexml (~> 3.2)
rubocop (>= 1.0, < 2.0)
slim (>= 3.0, < 6.0)
solid_queue (0.8.2)
solid_queue (0.9.0)
activejob (>= 7.1)
activerecord (>= 7.1)
concurrent-ruby (>= 1.3.1)
Expand Down
7 changes: 0 additions & 7 deletions config/solid_queue.yml → config/queue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,3 @@ test:

production:
<<: *default
dispatchers:
- polling_interval: 1
batch_size: 500
recurring_tasks:
nbp_sync_all_job:
class: NbpSyncAllJob
schedule: "0 3 * * *"
12 changes: 12 additions & 0 deletions config/recurring.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# 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
nbp_sync_all_job:
class: NbpSyncAllJob
schedule: at 3am every day

0 comments on commit a91b0e2

Please sign in to comment.