<#6486 [Core feature] Task retry support in Flyte ...
# flyte-github
c
#6486 [Core feature] Task retry support in Flyte Connectors Pull request opened by machichima ## Tracking issue Part of #6465 ## Why are the changes needed? Currently, our Connector cannot retry when task fail, which results in a loss of features for end users migrating from a plugin to a connector ## What changes were proposed in this pull request? use PhaseInfoRetryableFailure when task execution fail. ## How was this patch tested? Create a dummy connector that keep returning
RETRYABLE_FAILED
. Set the
default-max-attempt
= 3: propeller: ... node-config: default-max-attempts: 3 Run the dummy connector task and confirm it attempt 3 times: [image](https://private-user-images.githubusercontent.com/60069744/453217419-3e4f7449-da01-4858-8ee8-5890d7223588.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTA5NTE2MTEsIm5iZiI6MTc1MDk1MTMxMSwicGF0aCI6Ii82MDA2OTc0NC80NTMyMTc0MTktM2U0Zjc0NDktZGEwMS00ODU4LThlZTgtNTg5MGQ3MjIzNTg4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA2MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNjI2VDE1MjE1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI1OTExNmRlM2EwYmJmMzY5ZWI1MjdiZjhiMmIxMDRlMmExMjhkYzZmNzU1MzBhNzZiMmYwMDliNTA3ZmMyYTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.h_AqoCLT7VvTCH29hUOQqTfMvedY42GUqxfwVwyqVRs) ### 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 flyteorg/flytekit#3265 ## Docs link https://bito.ai#summarystart| ### Summary by Bito This pull request enhances Flyte Connectors by introducing a retry mechanism for tasks that fail due to retryable errors, adding a new execution phase 'RETRYABLE_FAILED'. This improvement ensures tasks can attempt retries, addressing critical functionality gaps for users migrating from plugins to connectors and improving reliability and user experience. flyteorg/flyte