Skip to content

Commit

Permalink
hotfix: make job reporter safer
Browse files Browse the repository at this point in the history
  • Loading branch information
yujonglee committed Oct 28, 2024
1 parent bfd0ad7 commit 42cd1d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/lib/canary/workers/job_reporter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ defmodule Canary.Workers.JobReporter do
_opts
)
when event in [:start, :stop, :exception] and worker in @processors do
source = Ash.get!(Source, args["source_id"])

try do
source = Ash.get!(Source, args["source_id"])

case event do
:start ->
Source.update_state(source, :running)
Expand Down

0 comments on commit 42cd1d4

Please sign in to comment.