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

CLI info on delayed rescheduling #3933

Merged
merged 2 commits into from
Mar 13, 2018

Conversation

preetapan
Copy link
Contributor

Show when an allocation is eligible to be rescheduled in the CLI if there's a followup eval id

Builds on top of #3928

@@ -296,6 +303,17 @@ func formatAllocBasicInfo(alloc *api.Allocation, client *api.Client, uuidLength
return formatKV(basic), nil
}

// lookupEvalTime returns a human
Copy link
Contributor

Choose a reason for hiding this comment

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

fix comment

nextEvalTime := futureEvalTimePretty(alloc.FollowupEvalID, client)
if nextEvalTime != "" {
basic = append(basic,
fmt.Sprintf("Reschedule Eligibility|%s", nextEvalTime))
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't really like "Reschedule Eligibility". What about "Rescheduling In"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

"Rescheduling In" won't look right when the alloc has already been rescheduled before you run alloc status. I tried to come up with a phrase that works both directions, so it would read correctly e.g "Reschedule Eligibility: 1hr from now" or "Reschedule Eligibility: 5m ago".

Maybe we can make it just the phrase "Rescheduling"?

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm okay with that context lets keep it as it is. We can try to refine it later.

@preetapan preetapan merged commit 3e04fb1 into f-delayed-scheduling Mar 13, 2018
@preetapan preetapan deleted the f-cli-delayed-rescheduling branch April 14, 2018 14:41
@github-actions
Copy link

github-actions bot commented Mar 6, 2023

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 Mar 6, 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.

2 participants