Skip to content

Commit

Permalink
seperate queue for forwarding jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
timcowlishaw committed Jul 10, 2024
1 parent 09ee67d commit 8be0a0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/jobs/mqtt_forwarding_job.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
class MQTTForwardingJob < ApplicationJob

queue_as :mqtt_forward

def perform(device_id, reading)
begin
device = Device.find(device_id)
Expand Down
1 change: 1 addition & 0 deletions config/sidekiq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- default
- mailers
- mqtt_retry
- mqtt_forward

production:
:concurrency: 25
Expand Down

0 comments on commit 8be0a0c

Please sign in to comment.