[#1149] Fixed failing tests. Ensured Instance.set_unreachable/2 supports ISO 8601 datetime.
This commit is contained in:
parent
267262491e
commit
33a5fc4a70
6 changed files with 20 additions and 6 deletions
|
|
@ -9,6 +9,12 @@ defmodule Pleroma.ObanHelpers do
|
|||
|
||||
alias Pleroma.Repo
|
||||
|
||||
def perform_all do
|
||||
Oban.Job
|
||||
|> Repo.all()
|
||||
|> perform()
|
||||
end
|
||||
|
||||
def perform(%Oban.Job{} = job) do
|
||||
res = apply(String.to_existing_atom("Elixir." <> job.worker), :perform, [job])
|
||||
Repo.delete(job)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue