Skip to content

perf: apply Project updates with four workers - #10941

Merged
zouyonghe merged 1 commit into
AstrBotDevs:masterfrom
zouyonghe:perf/project-sync-4-workers
Nov 1, 2026
Merged

zouyonghe merged 1 commit into
AstrBotDevs:masterfrom
zouyonghe:perf/project-sync-4-workers

Conversation

@zouyonghe

@zouyonghe zouyonghe commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Apply Project mutations with a fixed four-worker pool across distinct items.
  • Keep each item's add-then-update field operations sequential.
  • Retain per-item confirmed/unknown/unattempted failure accounting and progress output.
  • Document bounded concurrency and rate-limit retry expectations.

Verification

  • 51 focused offline tests pass (15 entrypoint/workflow, 28 delivery, 8 event).
  • Full repository Ruff checks and Actionlint pass.
  • Regression test verifies concurrency reaches four workers and stays sequential per item.

No live Project writes performed by this PR.

Summary by Sourcery

Parallelize Project updates across distinct items while preserving per-item ordering and reconciliation reporting.

Enhancements:

  • Apply Project item mutations with a bounded four-worker pool while preserving sequential operations within each item.
  • Retain per-item failure accounting and progress reporting when concurrent mutations encounter unknown outcomes.

Documentation:

  • Document the bounded concurrency behavior and clarify that it does not prevent GitHub rate limits.

Tests:

  • Add regression coverage verifying four-way concurrency across items and sequential mutations within each item.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Needs a human reviewer. If concurrent updates write an incorrect Project field or leave an item only partly updated, those values persist after reverting the code, but the sync can be rerun to reconcile them. A failed mutation may have an unknown outcome, and the remaining workers continue applying their items before the run reports failure.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@zouyonghe
zouyonghe merged commit 776ee95 into AstrBotDevs:master Nov 1, 2026
26 checks passed
@Soulter Soulter moved this to Done in AstrBot Roadmap Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant