Skip to content

fix(cron): handle null deliver field in cron list command#33870

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

fix(cron): handle null deliver field in cron list command#33870
JackJoltClick wants to merge 1 commit into
NousResearch:mainfrom
JackJoltClick:fix/cron-list-null-deliver

Conversation

@JackJoltClick

Copy link
Copy Markdown

Summary

Fixes #32896

The hermes cron list command was crashing with TypeError: can only join an iterable when a cron job had a null deliver field.

Changes

  • Added null check in cron_list() to default to ['local'] when deliver is None
  • Added comprehensive tests for null, string, and list deliver values

How to Test

  1. Create a cron job and manually set its deliver field to null in the jobs.json
  2. Run hermes cron list
  3. The command should display "local" as the delivery method without crashing

Platform

Tested on macOS

The cron list command was crashing with TypeError when a job had a null
deliver field. Added null check to default to 'local' delivery when
deliver is None.
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/cli CLI entry point, hermes_cli/, setup wizard comp/cron Cron scheduler and job management duplicate This issue or pull request already exists labels May 28, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Duplicate of the null-field-in-cron-list fix chain. Canonical: #20264. Superset PR already open: #32916 (covers deliver + repeat + schedule). Omnibus fix also in #33527. This PR only covers deliver field — #32916 is strictly broader.

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.

fix: hermes cron list crashes when job has null deliver field

2 participants