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

Add the ability of Flyteadmin to force terminate an execution #5817

Closed

Conversation

RRap0so
Copy link
Contributor

@RRap0so RRap0so commented Oct 6, 2024

Tracking issue

Related to #5832

Why are the changes needed?

Add a force flag on the server side of Flyte to be able to terminate executions if FlytePropeller is not running in the kubernetes cluster.

What changes were proposed in this pull request?

This adds the force bool into ExecutionTerminateRequest. This in turn will be passed to the k8s_executor. If it's a Forced termination, it will remove the finalizer from the execution CRD and delete.

If it's not forced it keeps doing just a deletion (like it was before)

How was this patch tested?

Unit tested.

Setup process

Screenshots

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

TBD

Docs link

TBD

Signed-off-by: Rafael Raposo <[email protected]>
@RRap0so RRap0so force-pushed the rafaelraposo/force-abort-impl branch from 51a325a to b8e7b27 Compare October 6, 2024 17:35
Copy link

codecov bot commented Oct 6, 2024

Codecov Report

Attention: Patch coverage is 55.00000% with 9 lines in your changes missing coverage. Please review.

Project coverage is 36.35%. Comparing base (197ae13) to head (37cc350).

Files with missing lines Patch % Lines
flyteadmin/pkg/workflowengine/impl/k8s_executor.go 66.66% 4 Missing and 1 partial ⚠️
flyteidl/gen/pb-go/flyteidl/admin/execution.pb.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5817      +/-   ##
==========================================
+ Coverage   34.48%   36.35%   +1.86%     
==========================================
  Files        1138     1304     +166     
  Lines      102742   110165    +7423     
==========================================
+ Hits        35434    40046    +4612     
- Misses      63634    65950    +2316     
- Partials     3674     4169     +495     
Flag Coverage Δ
unittests-datacatalog 51.37% <ø> (ø)
unittests-flyteadmin 55.56% <68.75%> (-0.04%) ⬇️
unittests-flytecopilot 12.17% <ø> (ø)
unittests-flytectl 62.26% <ø> (?)
unittests-flyteidl 7.16% <0.00%> (-0.01%) ⬇️
unittests-flyteplugins 53.35% <ø> (ø)
unittests-flytepropeller 42.02% <ø> (ø)
unittests-flytestdlib 55.37% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@RRap0so RRap0so force-pushed the rafaelraposo/force-abort-impl branch from 450c1cb to 3821a0c Compare October 6, 2024 17:54
@RRap0so RRap0so force-pushed the rafaelraposo/force-abort-impl branch from 3821a0c to 2f0262d Compare October 6, 2024 18:01
@RRap0so RRap0so changed the title wip Add the ability of Flyteadmin to force terminate an execution Oct 10, 2024
@RRap0so RRap0so marked this pull request as ready for review October 10, 2024 05:29
@RRap0so RRap0so closed this Oct 10, 2024
@RRap0so RRap0so deleted the rafaelraposo/force-abort-impl branch October 10, 2024 05:57
@RRap0so
Copy link
Contributor Author

RRap0so commented Oct 10, 2024

This was closed due to being unable to rebase and add signoffs. The replacement PR #5833

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.

1 participant