Skip to content

feat(service): shorter prime-number intervals for the roadmap rows #2965

Description

@dan-petty

Problem

Every row of the roadmap Service is due on a multiple of 5 minutes: the poll is 300 s, and the rows are due every 10, 15 and 60 minutes (1440 for alternatives). After a restart, or after one slow round, the rows meet on the same poll tick. Intake, refine and stage then compete for the model lane in one round, and the status rows (metrics, implement, stage_ready) read GitHub together. A person also waits up to an hour for a plan or a refine that a change has just made due.

Proposal

Shorten each interval and use a prime number, so that no two rows keep the same tick for long:

Setting Now New
service.poll_interval_seconds (default) 300 s 151 s
metrics 15 min 13 min
implement 10 min 7 min
stage_ready 10 min 3 min
intake 60 min 29 min
refine 60 min 31 min
stage 60 min 37 min
alternatives 1440 min 719 min

A test fails if a default interval is not a prime or is a multiple of 5.

Feasibility

The Service budget (service.github_requests_per_hour, 2000 live) stretches the poll when the requests of the last hour pass it (budget.poll_interval), so a shorter poll cannot pass the budget. The live use is about 990 requests an hour (Prometheus devops_cli_github_requests_total, 1 h, 2026-11-01).

Activity

  1. added
    source/agent
    type/feature
    scope/service
    status/new
    value/medium
    effort/low
    on Nov 1, 2026
  2. dan-petty commented on Nov 1, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: scope/service. The (service) scope of the title gives the scope.
    • Priority: P2-Medium. It reduces user wait and row collisions but the system functions correctly today.
    • Value: Medium. Users wait up to one hour for due rows; prime intervals cut that wait and spread model-lane load.
    • Effort: Low. The change sets new default numbers and adds one primality check test; the budget guard already exists.
    • Related: fix(service): the implement row waits behind refine on the model lane though it calls no model #2757, which asks for a different change. Both address rows competing on the model lane; #2757 moves implement off the lane, while this candidate staggers all rows with prime intervals.
  3. added
    priority/p2-medium
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 1, 2026
  4. removed
    status/in-review
    on Nov 1, 2026
  5. added a commit that references this issue on Nov 1, 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

    effort/lowpriority/p2-mediumscope/servicesource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions