Wrapped all Exq.Api calls in individual try/rescue/catch blocks to handle GenServer exits and exceptions when Exq hasn't connected to Redis yet. The "GenServer Exq terminating" errors in logs are from Exq itself crashing when it receives calls before it's ready, not from our code. These will still appear in logs as Exq restarts, but our telemetry code won't crash. Changes: - Added try/rescue/catch around each queue_size call in the loop - Added try/rescue/catch around processes/busy calls - Kept outer try/rescue/catch as a final safety net - rescue blocks must come before catch blocks in Elixir |
||
|---|---|---|
| .. | ||
| channels | ||
| components | ||
| controllers | ||
| helpers | ||
| live | ||
| plugs | ||
| endpoint.ex | ||
| gettext.ex | ||
| router.ex | ||
| telemetry.ex | ||
| user_auth.ex | ||