[X] Do a quick search and make sure the bug has not yet been reported
[X] For support, favor using the Elixir Forum, Slack, IRC, etc.
[X] Be friendly and polite!
Environment
Oban Version: 2.16.2
Oban Web Version: 2.10.0
PostgreSQL Version: Ubuntu 15.2-1
Elixir & Erlang/OTP Versions (elixir --version): 1.14.3 with OTP 25
Current Behavior
When I run mix phx.server and go directly to localhost:4000/my_oban_web_dashboard, I get an ArgumentError due to the executing atom not being defined yet. This only happens locally due to my job queue being empty and Oban seemingly not taking any action that would define :executing in the VM.
If I run with iex -S mix phx.server and define the atom manually, the dashboard can be accessed without errors, without any other action besides defining the atom:
iex(1)> :executing
After defining the :executing atom, Oban Web works normally. This only seems to happen with the :executing state. Other states are fine regardless of past state.
When I restart my local dev server with a working Oban Web opened in the browser, it errors out when the LiveView automatically refreshes the page.
Expected Behavior
I expected Oban Web to always be accessible, even if Oban has not ran any jobs before or the jobs table is empty.
I have not had time to investigate it further and it's low priority even for me, but I thought it's worth reporting since it might not happen in your environment and might be something that only happens to some people.
It seems something that is specific to executing and not other states (probably because it's only defined when a job executes? I'm not very familiar with the internals of the execution engine).
Precheck
Environment
elixir --version
): 1.14.3 with OTP 25Current Behavior
When I run
mix phx.server
and go directly tolocalhost:4000/my_oban_web_dashboard
, I get anArgumentError
due to theexecuting
atom not being defined yet. This only happens locally due to my job queue being empty and Oban seemingly not taking any action that would define:executing
in the VM.If I run with
iex -S mix phx.server
and define the atom manually, the dashboard can be accessed without errors, without any other action besides defining the atom:iex(1)> :executing
After defining the
:executing
atom, Oban Web works normally. This only seems to happen with the:executing
state. Other states are fine regardless of past state.When I restart my local dev server with a working Oban Web opened in the browser, it errors out when the LiveView automatically refreshes the page.
Expected Behavior
I expected Oban Web to always be accessible, even if Oban has not ran any jobs before or the jobs table is empty.
I have not had time to investigate it further and it's low priority even for me, but I thought it's worth reporting since it might not happen in your environment and might be something that only happens to some people.
It seems something that is specific to
executing
and not other states (probably because it's only defined when a job executes? I'm not very familiar with the internals of the execution engine).Thanks for all your work!