Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: rest api /api/executors does not show executors if TaskSchedulingPolicy::PullStaged #1175

Merged
merged 3 commits into from
Feb 10, 2025

Conversation

milenkovicm
Copy link
Contributor

Which issue does this PR close?

Closes #1174.

Rationale for this change

Rest api reports correct number of registered executors in case of TaskSchedulingPolicy::PullStaged

What changes are included in this PR?

In case TaskSchedulingPolicy::PullStaged is configured, executor registration is slightly different and no heartbeat are sent from executor to client. rest api method returning executors will call method which will first call heartbeats status and then consult registered executor list. This change will revert that order.

As heartbeat is not available there is no information about when is executor last seen, so rest api will return None in that case. This behaviour can be changed, we can add additional field in ExecutorMetadata indicating when was the last time executor called scheduler.

Are there any user-facing changes?

No

@andygrove andygrove merged commit e71847c into apache:main Feb 10, 2025
24 checks 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.

/api/executors does not show executors if TaskSchedulingPolicy::PullStaged
2 participants