Skip to content

Prevent scan starvation during PR maintenance#384

Merged
nicobistolfi merged 1 commit intomainfrom
vigilante/issue-382-prevent-long-running-pr-maintenance-from-starving-fresh-repo-scans
Apr 2, 2026
Merged

Prevent scan starvation during PR maintenance#384
nicobistolfi merged 1 commit intomainfrom
vigilante/issue-382-prevent-long-running-pr-maintenance-from-starving-fresh-repo-scans

Conversation

@nicobistolfi
Copy link
Copy Markdown
Collaborator

Summary

  • schedule PR maintenance on a background worker instead of blocking the scan loop
  • guard each success session with an in-flight flag so maintenance is not duplicated across scan ticks
  • add a regression test proving fresh scans and dispatch continue while maintenance is still running

Validation

  • go test ./... -count=1
  • go vet ./internal/app/... ./internal/state/...

Closes #382

@nicobistolfi nicobistolfi merged commit 25a1c80 into main Apr 2, 2026
1 check passed
@nicobistolfi nicobistolfi deleted the vigilante/issue-382-prevent-long-running-pr-maintenance-from-starving-fresh-repo-scans branch April 2, 2026 03:20
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.

Prevent long-running PR maintenance from starving fresh repo scans

1 participant