Skip to content

In heartbeat handle, proactively check for missed min_time#1088

Open
spirali wants to merge 1 commit intomainfrom
proactive-retract
Open

In heartbeat handle, proactively check for missed min_time#1088
spirali wants to merge 1 commit intomainfrom
proactive-retract

Conversation

@spirali
Copy link
Copy Markdown
Collaborator

@spirali spirali commented Apr 2, 2026

Optimization where worker proactively retracts prefilled tasks that missed min_time.
This speeds up to returning the task non-prefilled state and makes the scheduling more deterministic.

@spirali spirali force-pushed the proactive-retract branch from 81b2519 to d85be13 Compare April 2, 2026 17:08
@Kobzol
Copy link
Copy Markdown
Member

Kobzol commented Apr 3, 2026

Why is this done in the heartbeat handle? Seems a bit weird. Shouldn't this be a separate periodic background check?

@spirali
Copy link
Copy Markdown
Collaborator Author

spirali commented Apr 3, 2026

Why is this done in the heartbeat handle? Seems a bit weird. Shouldn't this be a separate periodic background check?

It should be, I just did not want to introduce a new config option 🙈.

@Kobzol
Copy link
Copy Markdown
Member

Kobzol commented Apr 3, 2026

This is an internal optimization, I don't think we have to make it configurable.

@spirali
Copy link
Copy Markdown
Collaborator Author

spirali commented Apr 3, 2026

It should be configurable for tests; otherwise, tests would be too long & dependent on an internal constant.

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