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:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user