<#6269 fix: Correct error handling in delete funct...
# flyte-github
c
#6269 fix: Correct error handling in delete function Pull request opened by pingsutw Tracking issue NA Why are the changes needed? Failed to delete the task since we always return err on delete What changes were proposed in this pull request? check if the error is nil first How was this patch tested? Run an agent task and terminate it Labels Please add one or more of the following labels to categorize your PR: • added: For new features. • changed: For changes in existing functionality. • deprecated: For soon-to-be-removed features. • removed: For features being removed. • fixed: For any bug fixed. • security: In case of vulnerabilities This is important to improve the readability of release notes. 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 NA Docs link NA Summary by Bito Fixed a critical bug in the agent plugin's Delete function by correcting error handling logic. The function now properly returns nil for successful deletions and only returns errors when actual error conditions occur, replacing the previous implementation that always returned an error. Unit tests added: False Estimated effort to review (1-5, lower is better): 1 flyteorg/flyte