Skip to content

feat: show one-shot cronjobs in gateway calendar view#720

Open
devitecc-dev wants to merge 1 commit into
outsourc-e:mainfrom
devitecc-dev:feat/one-shot-calendar
Open

feat: show one-shot cronjobs in gateway calendar view#720
devitecc-dev wants to merge 1 commit into
outsourc-e:mainfrom
devitecc-dev:feat/one-shot-calendar

Conversation

@devitecc-dev

Copy link
Copy Markdown

One-shot cronjobs (e.g. 'once at 2026-07-21 08:00') were invisible in the calendar because parseSchedule() only handled daily/weekly/monthly schedules.

Changes

  • Add 'one-shot' kind to ParsedCronSchedule type
  • Detect one-shot schedules in parseSchedule() (text contains 'once')
  • Include one-shot events in the calendar loop only on the exact nextRunAt date

How to test

  1. Create a one-shot cronjob via Hermes CLI: hermes cron create --schedule "2026-07-21T08:00:00" --prompt "test"
  2. Open gateway calendar view, navigate to July 2026
  3. The one-shot job should appear on July 21 at 08:00

One-shot cronjobs (e.g. 'once at 2026-07-21 08:00') were invisible
in the calendar because parseSchedule() only handled daily/weekly/
monthly schedules. This adds 'one-shot' kind detection and renders
the event on the exact nextRunAt date.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant