diff --git a/.github/workflows/sweep.yml b/.github/workflows/sweep.yml index e59d6b1e38..210c91fc89 100644 --- a/.github/workflows/sweep.yml +++ b/.github/workflows/sweep.yml @@ -550,6 +550,7 @@ jobs: run: | hot_intake="${{ ((github.event_name == 'workflow_dispatch' && github.event.inputs.hot_intake == 'true') || (github.event_name == 'schedule' && (github.event.schedule == '*/5 * * * *' || github.event.schedule == '2/5 * * * *'))) && 'true' || 'false' }}" exact_item="${{ github.event.client_payload.item_number || github.event.inputs.item_number || github.event.inputs.item_numbers || '' }}" + target_repo="${{ steps.target.outputs.target_repo }}" if [ "$hot_intake" = "true" ] && [ -n "$exact_item" ]; then batch_size="1" shard_count="1" @@ -563,9 +564,12 @@ jobs: else if [ "${{ github.event_name }}" = "schedule" ]; then batch_size="1" - min_active_shards="50" else batch_size="${{ github.event.inputs.batch_size || '3' }}" + fi + if [ "$target_repo" = "openclaw/openclaw" ]; then + min_active_shards="50" + else min_active_shards="0" fi shard_count="${{ github.event.inputs.shard_count || '100' }}" diff --git a/docs/scheduler.md b/docs/scheduler.md index aa023b192a..ec856aeb65 100644 --- a/docs/scheduler.md +++ b/docs/scheduler.md @@ -13,10 +13,11 @@ ClawSweeper has three issue/PR scheduler paths: The lanes share report storage and apply rules, but they intentionally do not share throughput. Event review and hot intake keep new maintainer-visible work fast. Normal backfill keeps older records moving with up to 100 concurrent Codex -review shards. Scheduled `openclaw/openclaw` review also has an active floor of -50 shards: due items win first, and if fewer than 50 items are due, the planner -fills the floor with the stalest currently-reviewed eligible items so review -capacity stays warm around the clock. +review shards. Normal `openclaw/openclaw` review has an active floor of 50 +shards for scheduled runs and workflow-dispatch continuations: due items win +first, and if fewer than 50 items are due, the planner fills the floor with the +stalest currently-reviewed eligible items so review capacity stays warm around +the clock. ## Workflow @@ -126,8 +127,9 @@ Defaults: - broad hot intake: 50 shards, batch size 1, scans up to 10 GitHub pages - scheduled normal backfill: 100 shards, batch size 1, scans up to 250 GitHub pages -- scheduled normal active floor: 50 shards for `openclaw/openclaw`; stale - current-review backfill is eligible after 30 minutes +- normal active floor: 50 shards for `openclaw/openclaw` scheduled runs and + workflow-dispatch continuations; stale current-review backfill is eligible + after 30 minutes - manual normal backfill: defaults to 100 shards, batch size 3, scans up to 250 GitHub pages unless overridden