Enhancements
-
[Telemetry] Add
[:oban, :stager, :switch]
telemetry event and use it for logging changes.Aside from an instrumentable event, the new logs are structured for consistent parsing on external aggregators.
-
[Job] Remove default priority from job schema to allow changing defaults through the database
Bug Fixes
-
[Basic] Restore
attempt < max_attempts
condition when fetching jobsIn some situations, a condition to ensure the attempts don't exceed max attempts is still necessary. By checking the attempts outside the CTE we maintain optimal query performance for the large scan that finds jobs, and only apply the check in the small outer query.
-
[Pruner] Add missing
:interval
tot:Oban.Plugins.Pruner.option/0