fix: pr #860
This commit is contained in:
parent
246a905be6
commit
89a3eebcf7
1 changed files with 2 additions and 0 deletions
|
|
@ -61,6 +61,8 @@ config :pinchflat, Oban,
|
||||||
plugins: [
|
plugins: [
|
||||||
# Keep old jobs for 30 days for display in the UI
|
# Keep old jobs for 30 days for display in the UI
|
||||||
{Oban.Plugins.Pruner, max_age: 30 * 24 * 60 * 60},
|
{Oban.Plugins.Pruner, max_age: 30 * 24 * 60 * 60},
|
||||||
|
# Rescue orphaned jobs stuck in "executing" state after crash/restart
|
||||||
|
{Oban.Plugins.Lifeline, rescue_after: :timer.minutes(30)},
|
||||||
{Oban.Plugins.Cron,
|
{Oban.Plugins.Cron,
|
||||||
crontab: [
|
crontab: [
|
||||||
{"#{current_minute} #{current_hour} * * *", Pinchflat.YtDlp.UpdateWorker},
|
{"#{current_minute} #{current_hour} * * *", Pinchflat.YtDlp.UpdateWorker},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue