Skip to content

Commit 82ea71c

Browse files
jonhymanhone
authored andcommitted
Updating to ensure that inline job arguments are normalized the same way as non-inlined jobs.
1 parent 0e7c089 commit 82ea71c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/resque/job.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ def self.create(queue, klass, *args)
4545

4646
if Resque.inline?
4747
# Instantiating a Resque::Job and calling perform on it so callbacks run
48-
new(:inline, {'class' => klass, 'args' => args}).perform
48+
# decode(encode(args)) to ensure that args are normalized in the same manner as a non-inline job
49+
new(:inline, {'class' => klass, 'args' => decode(encode(args))}).perform
4950
else
5051
Resque.push(queue, :class => klass.to_s, :args => args)
5152
end

0 commit comments

Comments
 (0)