v2.17.9
Enhancements
-
[Testing] Check process ancestry tree for
with_testing_mode
override.Cascade the
with_testing_mode
block to nested processes that make use of:$ancestry
in the process dictionary, i.e. tasks. Now enqueuing a job within spawned processes likeTask.async
orTask.async_stream
will honor the testing mode specified inwith_testing_mode/2
. -
[PG] Support alternative namespacing in
PG
notifierBy default, all Oban instances using the same
prefix
option would receive notifications from each other. Now you can use thenamespace
option to separate instances that are in the same cluster without changing theprefix
.
Bug Fixes
-
[Oban] Restore zero arity version of
pause_all_queues/0
Both pause and resume variants lost their default argument in a refactor that shifted around guard clauses.
-
[Oban] Add
:oban_draining
to process dict while drainingThe flag marks the test process while draining to give hints to the executor and engines. It fixes an incompatibility between
Oban.drain_queue/2
and Pro'sTesting.drain_jobs/2
.