Skip to content

Commit 88416fa

Browse files
committed
shoryuken: Add body_parser option to Shoryuken::Worker.shoryuken_options
refs: https://github.com/ruby-shoryuken/shoryuken/wiki/Worker-options
1 parent 27212b1 commit 88416fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gems/shoryuken/6.0/_test/test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class HelloWorker
88
include Shoryuken::Worker
99

10-
shoryuken_options queue: 'hello', auto_delete: true
10+
shoryuken_options queue: 'hello', auto_delete: true, body_parser: :json
1111

1212
def perform(sqs_msg, name)
1313
puts "Hello, #{name}"

gems/shoryuken/6.0/worker.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Shoryuken
22
module Worker
33
module ClassMethods
4-
def shoryuken_options: (?queue: String, ?delete: bool, ?auto_delete: bool, ?auto_visibility_timeout: bool, ?retry_intervals: Numeric, ?batch: bool) -> void
4+
def shoryuken_options: (?queue: String, ?delete: bool, ?auto_delete: bool, ?auto_visibility_timeout: bool, ?retry_intervals: Numeric, ?batch: bool, ?body_parser: untyped) -> void
55
end
66
end
77
end

0 commit comments

Comments
 (0)