Is there a way to run(immediately) Que job and get what its run
method returns?
class FooJob < Que::Job
def run
puts "FooJob is called"
123
end
end
supposedly_return_value = FooJob.run # expected 123?
supposedly_return_value.class # => FooJob
supposedly_return_value.class.superclass # => Que::Job
Before switching to Que I found this feature really helpful in very rare use cases in ActiveJob.