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

Fairer Task Queue: Add priority to lifecycle phases and deployments #252

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

susanpann
Copy link
Contributor

@susanpann susanpann commented Jun 18, 2024

Introduce priority to lifecycles and deployments

#project-fairer-task-queue
[sc-81601]

@susanpann susanpann marked this pull request as draft June 19, 2024 23:12
@susanpann susanpann marked this pull request as ready for review June 23, 2024 23:59
@@ -27,6 +27,7 @@ type Deployment struct {
FormValues map[string]string `json:"FormValues,omitempty"`
ManifestVariableSetID string `json:"ManifestVariableSetId,omitempty"`
Name string `json:"Name,omitempty"`
Priority string `json:"Priority" binding:"oneof=On Off LifecycleDefault"`
Copy link
Contributor

Choose a reason for hiding this comment

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

What happens if this is not set? Is it required? Is there a default?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

At the moment it sets it to an empty string. I've changed it to set the default to LifecycleDefault, with the omitempty tag

Copy link
Contributor

@tothegills tothegills left a comment

Choose a reason for hiding this comment

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

It looks good to me.

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