Skip to content

Store instances in cursor#709

Merged
Mangara merged 1 commit into
mainfrom
mangara-cursor-instances
May 13, 2026
Merged

Store instances in cursor#709
Mangara merged 1 commit into
mainfrom
mangara-cursor-instances

Conversation

@Mangara
Copy link
Copy Markdown
Contributor

@Mangara Mangara commented May 13, 2026

What and why?

In the newly introduced parallel enumerators, the cursor only stored the instance number, but not the total number of instances. If instances changed between when child jobs were enqueued and when they ran, the partition predicate would shift underneath already-enqueued children, silently skipping or double-processing records.

This PR stores the total number of instances in the cursor as well, and makes child jobs always use the instances from the cursor. With this change, the instances gets locked in when the job first runs and enqueues child jobs.

@Mangara Mangara self-assigned this May 13, 2026
@Mangara Mangara force-pushed the mangara-cursor-instances branch from dd06212 to bf3224e Compare May 13, 2026 15:08
@Mangara Mangara marked this pull request as ready for review May 13, 2026 15:08
@Mangara Mangara requested a review from a team as a code owner May 13, 2026 15:08
@Mangara Mangara merged commit 6a097ea into main May 13, 2026
24 checks passed
@Mangara Mangara deleted the mangara-cursor-instances branch May 13, 2026 18:55
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