Skip to content

[codex] Add Codex workspace cron scheduler#9654

Merged
boxp merged 2 commits into
mainfrom
feature/BOXP-16-codex-cron-skill
May 29, 2026
Merged

[codex] Add Codex workspace cron scheduler#9654
boxp merged 2 commits into
mainfrom
feature/BOXP-16-codex-cron-skill

Conversation

@boxp
Copy link
Copy Markdown
Owner

@boxp boxp commented May 29, 2026

Summary

  • bundle Codex workspace cron runtime scripts in the image under /opt/codex-workspace/cron
  • add a resident Babashka scheduler that reads /home/boxp/.codex-cron/jobs.edn
  • change the codex-workspace-cron skill/helper to CRUD the live home registry instead of boxp/lolice ConfigMap/CronJob manifests
  • keep scripting in Babashka and shell

Related

Validation

  • bash -n docker/codex-workspace/entrypoint.sh
  • bash -n docker/codex-workspace/cron/run-codex-cron.sh
  • bb docker/codex-workspace/skills/codex-workspace-cron/scripts/codex_cron_jobs.bb --root <tmp> list
  • smoke-tested helper add/show/update/enable/disable/delete against a temporary home registry
  • CODEX_CRON_ROOT=<tmp> timeout 2s bb docker/codex-workspace/cron/scheduler.bb
  • git diff --check

@boxp boxp force-pushed the feature/BOXP-16-codex-cron-skill branch from 6efd720 to 7d595b6 Compare May 29, 2026 12:23
@boxp boxp changed the title [codex] Add Codex workspace cron CRUD skill [codex] Add Codex workspace cron scheduler May 29, 2026
@boxp boxp marked this pull request as ready for review May 29, 2026 12:45
@boxp boxp merged commit 9c032ab into main May 29, 2026
14 checks passed
@boxp boxp deleted the feature/BOXP-16-codex-cron-skill branch May 29, 2026 12:46
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c8c5188db0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +58 to +61
(contains-any? (:day-of-month spec) (.getDayOfMonth zdt))
(contains-any? (:month spec) (.getMonthValue zdt))
(or (contains-any? (:day-of-week spec) dow)
(and (zero? dow) (contains-any? (:day-of-week spec) 7))))))
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Honor cron's DOM/DOW OR semantics

For schedules that restrict both day-of-month and day-of-week, this requires both fields to match because due? is inside a single and. The skill documents support for standard 5-field cron expressions, where these two fields are matched with OR semantics, so a schedule like 0 9 1 * 1 should run on the 1st of each month and every Monday but will only run when the 1st is a Monday. This silently skips expected runs for otherwise-valid cron schedules.

Useful? React with 👍 / 👎.

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