Skip to content

Align Hosted worker and repository workflow concurrency resolution #2987

Closed

Description

@integry

Hosted Fleet rollout now raises concurrent runs to Solo2/Team6/Scale12 (integry/propr-routing#213 and integry/propr-fleet#60). Fleet audit at core ee003e4 found a real inconsistency, independently confirmed: src/jobs/repositoryWorkflow.ts instanceWorkerConcurrency always prefers persisted worker_concurrency; src/worker.ts consults settings only with CONFIG_REPO. Hosted forbids CONFIG_REPO and uses WORKER_CONCURRENCY from its entitled desired state. A stale persisted setting1 can therefore restrict a Team repository workflow to1 even when worker concurrency6. A high stored value can raise repository ceiling above intended environment cap (not itself proof BullMQ process exceeds its cap).

Implement shared effective concurrency resolution for worker startup and repository workflow scheduling. Preserve supported self-hosted CONFIG_REPO behavior and intentional repository max_parallel_tasks below the instance limit; a stale global UI setting must neither silently lower nor raise the authoritative Hosted instance ceiling when CONFIG_REPO is absent. Validate numeric inputs consistently; no unrelated settings/credential changes. Audit other agent-run scheduling entrypoints and distinguish per-process versus instance-wide limits. If current supported Hosted topology can actually exceed the entitled concurrent agent runs, address that admission path with regression tests or explicitly identify a separate scoped follow-up; do not claim global enforcement from a BullMQ per-worker setting alone.

Acceptance: tests across2/6/12 with absent/lower/higher/malformed persisted settings, CONFIG_REPO present/absent, lower repository cap preserved, worker/workflow agreement, and N+1 runnable tasks queued without extra admitted work in supported topology. Keep public APIs compatible. No deployment/release/pin changes, infrastructure mutations or recursive task creation. Report how to validate exact core preview under Fleet live acceptance. Route code only via normal ProPR orchestration.

Activity

  1. propr-dev commented on Oct 11, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-6-astra model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-6-astra
    • Branch: 2987/gpt-6-astra-align-hosted-worker-and-r-20261011-1757-wqm
    • Base Branch: main
    • Worktree: issue-2987-20261011-1757-gpt-6-astra-wqm

    🔍 Track Task Execution

  2. added a commit that references this issue on Oct 11, 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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions