mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
fix que integration in Active Job tests part 2
Fixing the synchronous setting uncovered some more errors with Que 1.0: exception tests with retry_on started failing due to an assertion in Que's Active Job integration that running jobs won't nest. However, this is not the case when running retriable jobs synchronously. This change overrides Que's Active Job wrapper to not make this assertion. I also opened an issue in the que repo: https://github.com/que-rb/que/issues/329
This commit is contained in:
parent
23ce9a7f10
commit
4eefa1feb0
1 changed files with 6 additions and 0 deletions
|
@ -15,3 +15,9 @@ Que::Job.class_eval do
|
||||||
run(*args)
|
run(*args)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Que::ActiveJob::WrapperExtensions.class_eval do
|
||||||
|
def run(args)
|
||||||
|
super(args.deep_stringify_keys)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in a new issue