Skip to content

fix(cron): tolerate null repeat in cron list#28771

Open
Torch4084 wants to merge 1 commit into
NousResearch:mainfrom
Torch4084:fix/cron-list-null-repeat
Open

fix(cron): tolerate null repeat in cron list#28771
Torch4084 wants to merge 1 commit into
NousResearch:mainfrom
Torch4084:fix/cron-list-null-repeat

Conversation

@Torch4084

Copy link
Copy Markdown

Summary

hermes cron list assumes repeat is always a dict and that schedule is always dict-shaped when schedule_display is missing. MCP-created or hand-edited jobs can violate both assumptions and crash the list command.

Closes #28662.

Changes

  • make cron_list() handle repeat=None and other non-dict repeat values
  • make cron_list() fall back cleanly when schedule is a plain string instead of a dict
  • add a CLI regression test covering the mixed legacy/MCP-shaped job payload

Testing

  • uv run --extra dev pytest tests/hermes_cli/test_cron.py -q

@alt-glitch alt-glitch added type/bug Something isn't working comp/cron Cron scheduler and job management comp/cli CLI entry point, hermes_cli/, setup wizard P2 Medium — degraded but workaround exists duplicate This issue or pull request already exists labels May 19, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Duplicate of #20264 — same fix for hermes cron list crashing on jobs with null/missing repeat metadata. Both fix #28662. Also related to #23490 (repeat:null only, narrower scope).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard comp/cron Cron scheduler and job management duplicate This issue or pull request already exists P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: hermes cron list crashes with AttributeError on jobs created via cronjob MCP tool

2 participants