Skip to content

Conversation

@virajmehta
Copy link
Member

No description provided.

@virajmehta virajmehta changed the title changed durables API to use rust durations changed durable's API to use rust durations Dec 21, 2025
@virajmehta
Copy link
Member Author

@codex review

1 similar comment
@virajmehta
Copy link
Member Author

@codex review

@virajmehta virajmehta marked this pull request as ready for review December 24, 2025 14:12
@GabrielBianconi
Copy link
Member

@codex review

1 similar comment
@GabrielBianconi
Copy link
Member

@codex review

Copy link

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

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.

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@GabrielBianconi
Copy link
Member

@codex review

@GabrielBianconi GabrielBianconi added this pull request to the merge queue Dec 24, 2025
Copy link

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

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.

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

.bind(queue_name)
.bind(worker_id)
.bind(claim_timeout as i32)
.bind(claim_timeout.as_secs() as i32)

Choose a reason for hiding this comment

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

P2 Badge Normalize sub-second claim timeouts before DB use

Because WorkerOptions::claim_timeout is now a Duration, callers can pass sub‑second values (e.g., Duration::from_millis(1500)). Here that value is truncated with as_secs() before the DB claim/update, while the worker timers (and lease extender) still use the full Duration. That mismatch means the DB lease can expire earlier than the worker expects, allowing another worker to reclaim the task while the original is still running. Consider rejecting non‑integral seconds at start_worker or rounding up/normalizing to whole seconds everywhere you use claim_timeout.

Useful? React with 👍 / 👎.

Merged via the queue into main with commit 82e330b Dec 24, 2025
1 check passed
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.

3 participants