mirror of
https://github.com/ash-project/ash_oban.git
synced 2024-09-08 04:50:51 +12:00
improvement: log error on scheduler failure
This commit is contained in:
parent
f8f88bd2c1
commit
60c449b42c
2 changed files with 7 additions and 2 deletions
|
@ -1,2 +1,2 @@
|
|||
erlang 25.2.2
|
||||
elixir 1.14.3
|
||||
erlang 26.0.2
|
||||
elixir 1.15.4
|
||||
|
|
|
@ -163,6 +163,11 @@ defmodule AshOban.Transformers.DefineSchedulers do
|
|||
})
|
||||
end)
|
||||
|> insert()
|
||||
rescue
|
||||
e ->
|
||||
Logger.error("Error running AshOban scheduler #{__MODULE__}.\n#{Exception.format(:error, e, __STACKTRACE__)}")
|
||||
|
||||
reraise e, __STACKTRACE__
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue