Skip to content

Commit 42cd1d4

Browse files
committed
hotfix: make job reporter safer
1 parent bfd0ad7 commit 42cd1d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/lib/canary/workers/job_reporter.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ defmodule Canary.Workers.JobReporter do
2121
_opts
2222
)
2323
when event in [:start, :stop, :exception] and worker in @processors do
24-
source = Ash.get!(Source, args["source_id"])
25-
2624
try do
25+
source = Ash.get!(Source, args["source_id"])
26+
2727
case event do
2828
:start ->
2929
Source.update_state(source, :running)

0 commit comments

Comments
 (0)