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

Add config to disable preemption for batch/service jobs #5628

Merged
merged 2 commits into from
May 6, 2019

Conversation

preetapan
Copy link
Contributor

@preetapan preetapan commented Apr 29, 2019

Adds boolean configs to PreemptionConfig struct for batch/service jobs.

Nothing uses these configs yet, that will come in a future PR

api/operator.go Outdated
@@ -140,6 +140,8 @@ type SchedulerSetConfigurationResponse struct {
// PreemptionConfig specifies whether preemption is enabled based on scheduler type
type PreemptionConfig struct {
SystemSchedulerEnabled bool
BatchEnabled bool
Copy link
Member

Choose a reason for hiding this comment

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

Should these be Batch/ServiceSchedulerEnabled so as to match the SystemScheduledEnabled option?

@preetapan preetapan marked this pull request as ready for review May 3, 2019 19:54
@preetapan preetapan requested a review from langmartin May 3, 2019 19:54
Copy link
Contributor

@langmartin langmartin left a comment

Choose a reason for hiding this comment

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

lgtm!

@preetapan preetapan merged commit 237d8ca into master May 6, 2019
@preetapan preetapan deleted the f-preemption-config branch May 6, 2019 20:40
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 11, 2023
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.

3 participants