Add the SyncWorker and its cron configuration for Oban.
This commit is contained in:
+10
-1
@@ -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"},
|
||||
|
||||
Reference in New Issue
Block a user