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

fix: check plan.IsTerminated on IsPlanRunning #432

Merged
merged 6 commits into from
Jun 13, 2024
Merged

Conversation

ThibaultFy
Copy link
Member

@ThibaultFy ThibaultFy commented Jun 12, 2024

Description

check is plan.terminated when calling IsPlanRunning instead of changing the status of the task, cause it does not change the behaviour of IsPlanRunning (checked before changing task status).

This PR revert a part of #427 and closes FL-1593

Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
Copy link

linear bot commented Jun 12, 2024

@ThibaultFy
Copy link
Member Author

/e2e --tests sdk,mnist

@Owlfred
Copy link
Contributor

Owlfred commented Jun 12, 2024

End to end tests: ❌ FAILURE

Jobs status:

“Boy, that escalated quickly.” ― Ron Burgundy, Anchorman: The Legend of Ron Burgundy

Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
@@ -703,10 +703,14 @@ func TestIsPlanRunning(t *testing.T) {
require.Nil(t, err)

resp = appClient.IsPlanRunning("cp2")
require.True(t, resp.IsRunning)
require.False(t, resp.IsRunning)
Copy link
Member Author

Choose a reason for hiding this comment

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

@guilhem-barthes looks like that we where testing this use case and expecting it to be Running even after canceling it... We agree that we want it to be not running if canceled right ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds about right

Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
@ThibaultFy ThibaultFy marked this pull request as ready for review June 12, 2024 13:12
@ThibaultFy ThibaultFy requested a review from a team as a code owner June 12, 2024 13:12
if plan.IsTerminated() {
return false, err
} else {
return s.GetComputePlanDBAL().IsPlanRunning(key)
Copy link
Contributor

Choose a reason for hiding this comment

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

Architecture wise, I feel like IsPlanRunning should be renamed

Copy link
Member Author

Choose a reason for hiding this comment

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

On service side or dbal ?

Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
@ThibaultFy
Copy link
Member Author

/e2e --tests sdk,mnist

@Owlfred
Copy link
Contributor

Owlfred commented Jun 13, 2024

End to end tests: ✔️ SUCCESS

You rock!

Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
@ThibaultFy ThibaultFy merged commit c37696a into main Jun 13, 2024
6 checks passed
@ThibaultFy ThibaultFy deleted the fix/isplanrunning-v2 branch June 13, 2024 08:50
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.

3 participants