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

[API] Check background task state on project deletion wait [1.6.x] #5104

Merged
merged 7 commits into from
Feb 12, 2024

Conversation

alonmr
Copy link
Member

@alonmr alonmr commented Feb 11, 2024

https://jira.iguazeng.com/browse/ML-5701

Fail fast when the background task failed instead of waiting for 30 mins for nothing.

@liranbg liranbg marked this pull request as draft February 11, 2024 12:07
@alonmr alonmr marked this pull request as ready for review February 11, 2024 17:24
Copy link
Member

@quaark quaark left a comment

Choose a reason for hiding this comment

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

Looks Good!

Comment on lines +1006 to +1007
# We only test igz version < 3.5.5 flow because from 3.5.5 iguazio waits for the inner background task to
# finish so the wrapper task does not wait for the inner task
Copy link
Member

Choose a reason for hiding this comment

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

isn't the fail fast what you are testing? so it happens only for 3.5.5, no?

Copy link
Member Author

Choose a reason for hiding this comment

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

We only wait for the project deletion on iguazio < 3.5.5.
From iguazio 3.5.5 zebo waits for the inner bg task so the wrapper task waits on the zebo job and we know that if the zebo job succeeded/failed then the inner bg task finished. Therfore there is nothing to test on igz 3.5.5 because the flow doesn't reach the wait for deletion part.

# Conflicts:
#	server/api/crud/projects.py
@alonmr alonmr merged commit afecd24 into mlrun:1.6.x Feb 12, 2024
10 checks passed
@alonmr alonmr deleted the ML-5701-bp branch February 12, 2024 13:10
alonmr added a commit to alonmr/mlrun that referenced this pull request Feb 12, 2024
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.

None yet

3 participants