You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Call Oban.Pro.Relay.async(...) |> Oban.Pro.Relay.await() from inside a GenServer process
await() times out
Job finishes after await() timeout
The {:notification, :relay, %{...}} message is produced, but this time it is caught by the GenServer receive loop. If there's no handle_info to deal with this, the GenServer will die with an error something like this:
GenServer #PID<*> terminating ** (FunctionClauseError) no function clause matching in MyApp.Server.handle_info/2 (foo 0.1.0) lib/my_app/server.ex:31: MyApp.Server.handle_info({:notification, :relay, %{"ref" => "*", "result" => ...})
Expected Behavior
The choice of using a {:notification, :relay} message passed to the calling process shouldn't leak outside of the Relay.async and Relay.await functions
The text was updated successfully, but these errors were encountered:
Precheck
Environment
elixir --version
): erlang 27.1; elixir 1.17.3Current Behavior
Oban.Pro.Relay.async(...) |> Oban.Pro.Relay.await()
from inside a GenServer processawait()
times outawait()
timeout{:notification, :relay, %{...}}
message is produced, but this time it is caught by the GenServerreceive
loop. If there's nohandle_info
to deal with this, the GenServer will die with an error something like this:Expected Behavior
The choice of using a
{:notification, :relay}
message passed to the calling process shouldn't leak outside of theRelay.async
andRelay.await
functionsThe text was updated successfully, but these errors were encountered: