-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Feat [Language] Update Constants - [+] feat(init_const.go): add ErrorFailedToCompleteAfterAttempts constant for handling failure after multiple attempts * Feat [Worker] Update Constants - [+] chore(worker): add new constants for task, attempt, and maxRetries - [+] refactor(worker): rename constant policyNamE to policyName - [+] refactor(worker): rename constant policySpeC to policySpec - [+] refactor(worker): rename constant retryDelay to retryDelay * Feat [Worker] [Helper Function] Retry Policy Tasks - [+] refactor(worker): remove unused code and rename function withRetries to Execute in RetryPolicy struct - [+] feat(worker): add RetryPolicy struct and Execute method to handle retrying operations * Feat [Crew] Syncing Tasks Retries with Retry Policy - [+] refactor(crew.go): extract retry logic into a separate function - [+] feat(crew.go): add RetryPolicy struct to encapsulate retry settings - [+] feat(crew.go): use RetryPolicy's Execute method to perform task with retries - [+] fix(crew.go): update error message when task fails to complete * Refactor [Worker] [Error and Retry] Syncing with Retry Policy - [+] fix(worker): fix function signature of logRetryAttempt to include logFunc parameter - [+] refactor(worker): refactor handleGenericError to use waitForNextAttempt function instead of checking context cancellation directly * Chore [Crew] [Task Retries] Update Log Functions - [+] fix(crew.go): import constant package for ErrorEmoji constant - [+] chore(crew.go): update log function to use constant.ErrorEmoji
- Loading branch information
1 parent
34d8a8e
commit 7c6dad5
Showing
5 changed files
with
66 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters