[#1149] Refactored Oban workers API (introduced enqueue/3).
This commit is contained in:
parent
a90ea8ba15
commit
dd017c65a4
23 changed files with 92 additions and 113 deletions
|
|
@ -13,6 +13,8 @@ defmodule Pleroma.Workers.BackgroundWorker do
|
|||
queue: "background",
|
||||
max_attempts: 1
|
||||
|
||||
use Pleroma.Workers.WorkerHelper, queue: "background"
|
||||
|
||||
@impl Oban.Worker
|
||||
def perform(%{"op" => "fetch_initial_posts", "user_id" => user_id}, _job) do
|
||||
user = User.get_cached_by_id(user_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue