Skip to content

Add bi-weekly and tri-weekly schedule syntax with scattered execution times#10088

Merged
pelikhan merged 3 commits intomainfrom
copilot/add-bi-weekly-tri-weekly-support
Jan 15, 2026
Merged

Add bi-weekly and tri-weekly schedule syntax with scattered execution times#10088
pelikhan merged 3 commits intomainfrom
copilot/add-bi-weekly-tri-weekly-support

Conversation

Copy link
Contributor

Copilot AI commented Jan 15, 2026

Adds bi-weekly and tri-weekly schedule syntax that distributes workflow execution times deterministically across 14-day and 21-day periods respectively.

Changes

Parser (pkg/parser/schedule_parser.go):

  • Added bi-weekly and tri-weekly cases generating FUZZY:BI_WEEKLY and FUZZY:TRI_WEEKLY intermediate forms
  • Implemented scattering across 20,160 minutes (14 days) for bi-weekly and 30,240 minutes (21 days) for tri-weekly
  • Produces cron patterns with */14 and */21 day intervals respectively

Tests (pkg/parser/schedule_parser_test.go):

  • Parse tests validating new keyword recognition
  • Scatter tests verifying correct day intervals
  • Deterministic tests ensuring consistent time assignment across recompilations

Documentation (docs/src/content/docs/reference/schedule-syntax.md):

  • Added quick reference entries and dedicated sections for bi-weekly/tri-weekly
  • Updated best practices section

Usage

on: bi-weekly    # Runs every 14 days at scattered time (e.g., "2 15 */14 * *")
on: tri-weekly   # Runs every 21 days at scattered time (e.g., "22 5 */21 * *")

Each workflow gets a deterministic execution time via FNV-1a hash of its path, preventing load spikes while ensuring consistency across compilations.

Original prompt

Add support for "bi-weekly" "tri-weekly" on short scheduling syntax. Scatter start day, hour and minute accross the week.

Custom agent used: agentic-workflows
GitHub Agentic Workflows (gh-aw) - Create, debug, and upgrade AI-powered workflows with intelligent prompt routing


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits January 15, 2026 15:36
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for bi-weekly and tri-weekly scheduling Add bi-weekly and tri-weekly schedule syntax with scattered execution times Jan 15, 2026
Copilot AI requested a review from pelikhan January 15, 2026 15:55
@pelikhan pelikhan marked this pull request as ready for review January 15, 2026 15:55
@pelikhan pelikhan merged commit 02b0a17 into main Jan 15, 2026
@pelikhan pelikhan deleted the copilot/add-bi-weekly-tri-weekly-support branch January 15, 2026 15:56
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.

2 participants