v2.20.3
Enhancements
-
[Worker] Allow snoozing jobs by returning a tuple period
It's now possible to snooze jobs with a period such as
{1, :minute}instead of just a raw number of seconds. -
[Oban] Validate no duplicate options are passed to config on init
Because options are provided as a keyword list, duplicate options were accepted while only one was actually used.
Bug Fixes
-
[Oban] Fix starting a queue on a specific node
The
:nodeoption was incorrectly preserved when starting a queue, which would crash it. Now the:nodeis dropped after scoping the start signal. -
[Reindexer] Fix dropping invalid indexes from the reindexer
The reindexer would fail sliently with "DROP INDEX CONCURRENTLY" cannot be executed from a function message because the deindex operation used a
DOblock to loop through and drop invalid indexes, but PostgreSQL prohibitsCONCURRENTLYoperations inside functions or DO blocks. Now invalid indexes are fetched first, then dropped as individual queries.