Skip to content

feat: enforce configurable minimum cron intervals - #308

Open
Linxiushen wants to merge 1 commit into
OpenHands:mainfrom
Linxiushen:feat/minimum-cron-interval
Open

feat: enforce configurable minimum cron intervals#308
Linxiushen wants to merge 1 commit into
OpenHands:mainfrom
Linxiushen:feat/minimum-cron-interval

Conversation

@Linxiushen

Copy link
Copy Markdown
Contributor

Summary

  • add AUTOMATION_MIN_CRON_INTERVAL_SECONDS with a disabled-by-default value of 0
  • reject cron triggers whose shortest sampled interval is below the configured floor
  • advertise the effective floor as the maximum of polling, scheduler, and deployment limits
  • cover defaults, environment loading, validation boundaries, and capability reporting

Testing

  • python -m pytest tests/test_schemas.py tests/test_config.py -q (63 passed)
  • ruff check and ruff format --check on changed files
  • pycodestyle and pyright on changed files
  • SQLite-backed /capabilities endpoint smoke test

Closes #217

@github-actions github-actions Bot added the type: feat A new feature label Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feat A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enforce a configurable minimum cron interval for automation schedules

1 participant