# NousResearch/hermes-agent · Gateway cron job deadlock fixes and patches

## Open now

- Nothing open on GitHub.

A bug report and several follow-up fixes addressing deadlocks that occur when gateway-executed cron jobs make LLM API calls, including inline execution, watchdog timeouts, and worker nesting issues.

## TL;DR

- 6 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 2 merged PR(s), 3 PR(s) closed without merging.
- A fix was merged to main in PR #62315. Verify it addresses your case.
- **Recommended:** read PR #62315 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-62315`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.33`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #62151: \[Bug\] Gateway-executed cron jobs deadlock before HTTP on the 2nd+ API call — same job succeeds via CLI cron tick; chat sessions unaffected (v0.18.0)

## Prior & competing PRs

- **#62315: fix(cron): keep gateway cron API calls out of nested workers**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `agent/chat_completion_helpers.py`, `run_agent.py`, `tests/agent/test_cron_inline_api_call_62151.py`, `tests/cron/test_cron_direct_api_call_62151.py`
- **#80944: fix(cron): bound the inline non-streaming call with a stale watchdog (salvage of #80809)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `agent/chat_completion_helpers.py`, `tests/cron/test_cron_direct_api_call_watchdog.py`, `website/docs/user-guide/configuration.md`
- **#62190: fix(agent): run cron LLM calls inline to avoid gateway deadlock (#62151)**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#62315`, `#62315`, `#62315`
- **#62198: fix(cron): stop inactivity watchdogs from being blind to a wedged API call (#62151)**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#62151`, `#62151`, `#62315`, `#62151`
- **#80809: fix(cron): bound the inline non-streaming call with a stale watchdog**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `cb066a971`, `d7fb503c2`, `#80944`, `#75301`

## Fix status

- Merged to main in PR #62315 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-08-07`.
