Skip to content

P6 scheduled dispatch: replace the cron-dispatch CronJob (Archetype C) removed by #691 #536

Open

Description

@pdettori

Status (2026-11-05): #691 has merged and removed the Knative/KEDA path, including the cron-dispatch CronJob. Archetype C has no P6 equivalent; this issue tracks the replacement. It no longer gates the removal. Its sibling for async fan-out (Archetype A) is #686.

Problem

The scheduled on-ramp (Archetype C: a Kubernetes CronJob running cron-dispatch) ran only on the Knative/KEDA path. #691 removed it (ADR-0041) along with:

  • packages/knative-server/src/cron-dispatch.ts
  • deploy/knative/leaf-cron.yaml
  • leaf-cron-smoke.sh
  • the async-enqueue route it dispatched through. POST /runs {async:true} now answers 400 async_removed.

ADR-0041's "Still owed" note and docs/concepts/dispatch-archetypes.md record C as "Removed … no P6 equivalent yet". The P6 spec (§2.2, §8) puts scheduled dispatch on the VM out of scope for round one. #490 found no respondent depending on cron.

The removed code is the reference for parity. Pin it to the last pre-removal commit, 38aa2146:

Scope

  1. A design note (spec in docs/specs/, plus an ADR if it changes a decision): how scheduled dispatch runs on P6 across deploy/vm, deploy/compose and deploy/k8s.
  2. Dependency on async leaf turns. A schedule fires work that nobody waits for, so this most likely builds on the async consumer that the Epic: P6 async fan-out — replace the KEDA leaf-worker (Archetype A) removed by #691 #686 epic delivers (Coding-agent subagents B1: design — async leaf turns on sessions for P6 (spec + ADR) #386, Coding-agent subagents B2: control plane — async turn submission and turn records #387, Coding-agent subagents B3: grants minted at dequeue from the turn record (no bearer in the queue) #388, Coding-agent subagents B4: async leaf worker on P6 (deploy/vm, compose) #389), not on sync /runs.
  3. Per-subject admission and quota (Supervisor: per-subject admission quota #360) apply to scheduled runs too.
  4. Docs: once the path exists, update the Archetype C row and section of docs/concepts/dispatch-archetypes.md and ADR-0041's "Still owed" note, and add a configuration-reference entry.

Acceptance

  • A decision recorded on where the scheduler lives and how it authenticates.
  • Implementation issues filed from the design, or a stated decision not to support schedules on P6.
  • dispatch-archetypes.md and ADR-0041 no longer say "no P6 equivalent" for Archetype C, or they record the decision not to support it.

Related

#691 (removal), #686 (Archetype A epic), #490 (migration poll, closed by #691), #386, #389, #360, #378

Activity

  1. added
    enhancement
    on Oct 15, 2026
  2. changed the title [-]P6 scheduled dispatch: replace the cron-dispatch CronJob (Archetype C) before Knative/KEDA removal[/-] [+]P6 scheduled dispatch: replace the cron-dispatch CronJob (Archetype C) removed by #691[/+] on Nov 5, 2026
  3. added 2 commits that reference this issue on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions