Skip to content

Commit

Permalink
tweak shoryuken config
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jun 5, 2021
1 parent d31d609 commit 0ebba1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/models/claim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Claim < ApplicationRecord
state :working, :failed, :done, :ignored, :deleted, :notified

event :start do
transitions from: %i[waiting ignored deleted notified], to: :working
transitions from: %i[waiting failed ignored deleted notified], to: :working
end

event :finish do
Expand Down
6 changes: 2 additions & 4 deletions config/initializers/_shoryuken.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ class RavenReporter
def call(_worker_instance, queue, _sqs_msg, body)
tags = { job: body["job_class"], queue: queue }
context = { message: body }
Raven.capture(tags: tags, extra: context) do
yield
end
Raven.capture(tags: tags, extra: context) { yield }
end
end
end
Expand All @@ -25,4 +23,4 @@ def call(_worker_instance, queue, _sqs_msg, body)
end
end

Shoryuken.active_job_queue_name_prefixing = true
Shoryuken.active_job_queue_name_prefixing = true

0 comments on commit 0ebba1d

Please sign in to comment.