diff --git a/lib/que/active_job/extensions.rb b/lib/que/active_job/extensions.rb index 448e3852..45037d9a 100644 --- a/lib/que/active_job/extensions.rb +++ b/lib/que/active_job/extensions.rb @@ -82,11 +82,6 @@ def run(args) # option under the circumstances (doesn't require hacking ActiveJob in # any more extensive way). - # There's no reason this logic should ever nest, because it wouldn't - # make sense to run a worker inside of a job, but even so, assert that - # nothing absurd is going on. - Que.assert NilClass, Thread.current[:que_current_job] - begin Thread.current[:que_current_job] = self