We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f136b7 commit af43ec0Copy full SHA for af43ec0
lib/algora/activities/jobs/notifier.ex
@@ -0,0 +1,19 @@
1
+defmodule Algora.Activities.Notifier do
2
+ @moduledoc false
3
+ use Oban.Worker,
4
+ queue: :activities,
5
+ max_attempts: 1,
6
+ tags: ["notify", "activities"]
7
+
8
+ # unique: [period: 30]
9
10
+ def changeset(activity, target) do
11
+ new(%{activity_id: activity.id, target_id: target.id})
12
+ end
13
14
+ @impl Oban.Worker
15
+ def perform(%Oban.Job{args: %{}} = job) do
16
+ IO.inspect(job)
17
+ :ok
18
19
+end
0 commit comments