When running a job inline, within another job, like this
class ParentJob
def perform
Resque.inline = true
ChildJob.create()
A 'No implicit conversion of Class into String' error is thrown from Resque::Job.create()
, at this line
|
new(:inline, {'class' => klass, 'args' => decode(encode(args))}).perform |
I see that in the create()
method, the klass
parameter is explicitly converted to String
only when Resque.inline?
is false.
Shouldn't do that also when executing inline?
Thanks!