Add the SyncWorker and its cron configuration for Oban.

This commit is contained in:
2025-04-27 14:07:57 +03:00
parent f4c2207a80
commit dff915e835
2 changed files with 23 additions and 1 deletions
+10 -1
View File
@@ -8,7 +8,16 @@
import Config
config :ash_oban, pro?: false
config :decentralised_book_index, Oban, plugins: [{Oban.Plugins.Cron, []}]
config :decentralised_book_index, Oban,
repo: DecentralisedBookIndex.Repo,
queues: [default: 14],
plugins: [
Oban.Plugins.Pruner,
{Oban.Plugins.Cron,
crontab: [
{"@daily", DecentralisedBookIndex.SyncWorker},
]}
]
config :mime,
extensions: %{"json" => "application/vnd.api+json"},