fix: add Oban Lifeline plugin to rescue orphaned jobs

Jobs stuck in "executing" state after server restarts will now be
automatically rescued after 5 minutes. This prevents jobs from
being permanently orphaned when the server restarts mid-execution.

Also updates tidewave 0.5.3 -> 0.5.4 and related dependencies.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
jamey
2026-01-31 13:48:04 +00:00
parent ee1da08941
commit c1e19889d4
2 changed files with 6 additions and 5 deletions

View File

@@ -88,7 +88,8 @@ config :simpleshop_theme, Oban,
engine: Oban.Engines.Lite,
repo: SimpleshopTheme.Repo,
plugins: [
{Oban.Plugins.Pruner, max_age: 60}
{Oban.Plugins.Pruner, max_age: 60},
{Oban.Plugins.Lifeline, rescue_after: :timer.minutes(5)}
],
queues: [images: 2, sync: 1]