Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 19, 2026

Summary

Addresses review feedback on #1466 regarding retry loop concerns. The pgmq queue system enforces a maximum of 5 retry attempts (read_ct > 5 cleanup), making the current error-throwing implementation safe and correct.

When getSize() returns 0, the function throws simpleError, triggering queue retries. The queue automatically deletes messages after 5 failed attempts, providing a window for S3 files to become ready while preventing infinite loops.

No code changes required - the existing implementation in #1466 correctly leverages the queue's built-in retry mechanism.

Test plan

No changes made. Original PR #1466 test plan applies.

Screenshots

N/A - clarification PR, no code changes

Checklist

  • My code follows the code style of this project and passes
    bun run lint:backend && bun run lint.
  • My change requires a change to the documentation.
  • I have updated the documentation
    accordingly.
  • My change has adequate E2E test coverage.
  • I have tested my code manually, and I have provided steps how to reproduce
    my tests

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

riderx and others added 3 commits January 19, 2026 20:36
The on_manifest_create trigger was skipping the database update when
getSize returned 0, causing file_size to remain 0 in production. Now
it throws an error on size=0 to trigger queue retry, ensuring the
update always happens when a valid size is available.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Address review feedback: when updateError occurs, throw simpleError
instead of just logging so the queue can retry the operation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 19, 2026

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Base automatically changed from riderx/fix-manifest-file-sizes to main January 19, 2026 20:43
Copilot AI changed the title [WIP] Fix feedback on manifest file_size update for queue system retries Clarify queue system retry mechanism handles manifest file_size update retries Jan 19, 2026
Copilot AI requested a review from riderx January 19, 2026 20:45
@sonarqubecloud
Copy link

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.

2 participants