Skip to content

[VQueues] Purge obsolete metadata inline - #5308

Merged
AhmedSoliman merged 1 commit into
mainfrom
pr5308
Sep 11, 2026
Merged

[VQueues] Purge obsolete metadata inline#5308
AhmedSoliman merged 1 commit into
mainfrom
pr5308

Conversation

@AhmedSoliman

@AhmedSoliman AhmedSoliman commented Sep 10, 2026

Copy link
Copy Markdown
Member

Delete unpaused VQueue metadata when the last entry is removed. Return a disposition so cache detachment remains event-safe and same-batch recreation uses a fresh handle.


@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 10, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-11T16:12:41.323488Z 86c6bce Manual 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Sep 10, 2026

Copy link
Copy Markdown

Test Results

  8 files  ±0    8 suites  ±0   5m 11s ⏱️ -1s
 61 tests ±0   61 ✅ ±0  0 💤 ±0  0 ❌ ±0 
268 runs  ±0  268 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 86c6bce. ± Comparison against base commit fbead57.

♻️ This comment has been updated with latest results.

@tillrohrmann
tillrohrmann self-requested a review September 11, 2026 09:37

@tillrohrmann tillrohrmann 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.

Thanks for creating this PR @AhmedSoliman. Deleting obsolete vqueue metadata makes a lot of sense to me. There is one thing to clarify before merging which is whether we want to keep the secondary map in the DRRScheduler in sync with the vqueue meta cache or not.

.into_inner()?;
let at = UniqueTimestamp::from_unix_millis_unchecked(self.record_created_at);
for qid in pause.vqueues.iter() {
let Some(mut vqueue) = VQueue::get(

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.

After an offline discussion: Maybe add a comment stating that we want to ship vqueue pausing after enabling the clean up of obsolete vqueue metadata.

Comment thread crates/vqueues/src/lib.rs

if delete_after.is_zero() {
// Delete immediately!
self.delete(

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.

As a breadcrumb: Here the DRRScheduler.q field might go out of sync with the vqueue meta cache if the ending invocation is not inboxed (e.g. running).

Delete unpaused VQueue metadata when the last entry is removed. Return a disposition so cache detachment remains event-safe and same-batch recreation uses a fresh handle.
@AhmedSoliman

Copy link
Copy Markdown
Member Author

@codex review

1 similar comment
@AhmedSoliman

Copy link
Copy Markdown
Member Author

@codex review

@tillrohrmann tillrohrmann 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.

🚢

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: 86c6bce398

ℹ️ 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".

@AhmedSoliman
AhmedSoliman merged commit 86c6bce into main Sep 11, 2026
31 checks passed
@AhmedSoliman
AhmedSoliman deleted the pr5308 branch September 11, 2026 16:16
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants