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

Change phase to WaitingForResources when quota exceeded #5195

Merged
merged 3 commits into from
Apr 7, 2024

Conversation

pingsutw
Copy link
Member

@pingsutw pingsutw commented Apr 7, 2024

Tracking issue

https://flyte-org.slack.com/archives/CP2HDHKE1/p1708818106936209

Why are the changes needed?

Tasks are stuck in the queue phase when the resource quota is exceeded since the propeller won't send the event to Flyteadmin if the current phase is equal to the previous phase. Therefore, propeller won't update the state (PhaseNotStarted ->PhaseAllocationTokenAcquired) as well, and it will always assume that there is no resource available to execute the task.

What changes were proposed in this pull request?

Change phase to WaitingForResources when the quota is exceeded, so propeller will send the event to flyteadmin.

How was this patch tested?

local sandbox and enable the resource manager

Setup process

Screenshots

Before:

Screenshot 2024-04-06 at 11 20 03 PM

After:

Screenshot 2024-04-06 at 11 03 40 PM
  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

NA

Docs link

NA

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. enhancement New feature or request labels Apr 7, 2024
Signed-off-by: Kevin Su <[email protected]>
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Apr 7, 2024
Signed-off-by: Kevin Su <[email protected]>
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Apr 7, 2024
Copy link
Contributor

@EngHabu EngHabu left a comment

Choose a reason for hiding this comment

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

Thank you, @pingsutw!

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Apr 7, 2024
@EngHabu EngHabu merged commit 6d58c73 into master Apr 7, 2024
46 checks passed
@EngHabu EngHabu deleted the fix-resource-manager branch April 7, 2024 11:52
Jeinhaus pushed a commit to Jeinhaus/flyte that referenced this pull request Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants