1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Workers.ScheduledActivityWorker do
6 # Note: `max_attempts` is intended to be overridden in `new/1` call
8 queue: "scheduled_activities",
9 max_attempts: Pleroma.Config.get([:workers, :retries, :compile_time_default])
12 def perform(%{"op" => "execute", "activity_id" => activity_id}) do
13 Pleroma.ScheduledActivityWorker.perform(:execute, activity_id)