Skip to content

Add unique-as-retry support for unique jobs - #2723

Open
inimaga wants to merge 5 commits into
mainfrom
issa/Add-unique-as-retry-support-for-unique-jobs
Open

Add unique-as-retry support for unique jobs#2723
inimaga wants to merge 5 commits into
mainfrom
issa/Add-unique-as-retry-support-for-unique-jobs

Conversation

@inimaga

@inimaga inimaga commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Details

Adds an opt-in uniqueAsRetry mode that stores private version metadata in the existing jobs.data JSON. Bedrock returns the dequeue version to workers and uses it to prevent stale FinishJob, RetryJob, and FailJob requests from overwriting activity received during a run. Multiple enqueues are collapsed into one follow-up run containing the latest data.

Fixed Issues

Fixes https://github.com/Expensify/Expensify/issues/670760

Related issue: Expensify/Bedrock-PHP#270

Tests

Covered by automated test coverages; CreateJobTest::uniqueAsRetryLifecycle, CreateJobsTest::uniqueAsRetryBatch, and FailJobTest::uniqueAsRetry.


Internal Testing Reminder: when changing bedrock, please compile auth against your new changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: da016c15ee

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread plugins/Jobs.cpp
@inimaga
inimaga requested a review from a team August 16, 2026 14:36
@melvin-bot
melvin-bot Bot requested review from pecanoro and removed request for a team August 16, 2026 14:36
@inimaga
inimaga requested a review from iwiznia August 16, 2026 14:43
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.

1 participant