and i yoink (#275)
[akkoma] / lib / pleroma / workers / purge_expired_activity.ex
index 027171c1e66fbf7b61eb746b6ba975405f890699..652e1d6b19008c563f4c973122eba6f9f2450ce7 100644 (file)
@@ -27,6 +27,11 @@ defmodule Pleroma.Workers.PurgeExpiredActivity do
     end
   end
 
+  @impl Oban.Worker
+  def timeout(_job) do
+    Pleroma.Config.get([:workers, :timeout, :activity_expiration], :timer.minutes(1))
+  end
+
   @impl true
   def perform(%Oban.Job{args: %{"activity_id" => id}}) do
     with %Activity{} = activity <- find_activity(id),