Commit 35deb3b
Fix job worker silently exiting on transient fetchNextJob error
After the job worker redesign (820cf00), runJobLoop exits without
retrying when fetchNextJob throws a transient error (pool exhaustion,
connection timeout). Since the NOTIFY signal was already consumed from
the TBQueue, nothing triggers a new worker spawn, so the job sits
orphaned until the 60-second poller picks it up.
The old MVar-based workers were persistent and always looped back to
takeMVar after any outcome. The new on-demand workers are ephemeral,
so exiting means the job is lost until the poller runs.
Add runJobLoop call to the error branch so the worker retries after
the 1-second backoff, matching how the poller handles errors.
Fixes amitaibu/ihp-sensors#18
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent ba7fa69 commit 35deb3b
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
| |||
0 commit comments