parent
f4c2207a80
commit
dff915e835
@ -0,0 +1,13 @@
|
||||
defmodule DecentralisedBookIndex.SyncWorker do
|
||||
use Oban.Worker,
|
||||
queue: :default,
|
||||
max_attempts: 2,
|
||||
tags: ["sync", "cron"]
|
||||
|
||||
require Logger
|
||||
|
||||
@impl Oban.Worker
|
||||
def perform(%Oban.Job{args: args} = job) do
|
||||
SyncServerTask.sync_all()
|
||||
end
|
||||
end
|
Loading…
Reference in new issue