mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-11-19 16:10:59 +00:00
19 lines
510 B
Elixir
19 lines
510 B
Elixir
# Pleroma: A lightweight social networking server
|
|
# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
defmodule Pleroma.Jobs.WorkerMock do
|
|
require Logger
|
|
|
|
def perform(:test_job, arg, arg2) do
|
|
Logger.debug({:perform, :test_job, arg, arg2})
|
|
end
|
|
|
|
def perform(:test_job, payload) do
|
|
Logger.debug({:perform, :test_job, payload})
|
|
end
|
|
|
|
def test_job(payload) do
|
|
Pleroma.Jobs.enqueue(:testing, __MODULE__, [:test_job, payload])
|
|
end
|
|
end
|