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

Improving to make it more idiomatic #63

Merged
merged 8 commits into from
Dec 31, 2023
Merged

Improving to make it more idiomatic #63

merged 8 commits into from
Dec 31, 2023

Conversation

H0llyW00dzZ
Copy link
Owner

No description provided.

- [+] fix(init_const.go): fix typo in error message variable name
- [+] fix(worker): handle error in listPods function using idiomatic Go error handling
- [+] refactor(worker): update error message format in listPods function
- [+] chore(init_const.go): fix typo in error message for FailedTOScallEdDeployment
- [+] feat(init_const.go): add CompassEmoji constant for a compass emoji
- [+] chore(init_const.go): add error constants for sailing ships and task attempts
- [+] refactor(helper.go): refactor logTaskStart function to combine emojis with a space for readability
- [+] refactor(helper.go): refactor logErrorWithFields function to combine emojis with a space for readability
- [+] feat(helper.go): add withRetries function to handle retrying an operation with a specified number of attempts and delay
- [+] feat(helper.go): add attemptOperation function to attempt an operation and handle errors
- [+] feat(helper.go): add waitForNextAttempt function to wait for the next attempt with a specified delay
- [+] fix(crew.go): add taskStatus parameter to performTaskWithRetries function
- [+] feat(crew.go): add operation function to perform task with retries and return task name along with error
- [+] feat(crew.go): use withRetries helper function to perform operation with retries
- [+] fix(crew.go): handle failure if operation fails after retries and return error message
- [+] fix(crew.go): handle success if operation is successful
- [+] fix(scale.go): fix typo in error message constant name from FailedTOScallEdDeployment to FailedToScaleDeployment
@H0llyW00dzZ H0llyW00dzZ added documentation Improvements or additions to documentation enhancement New feature or request labels Dec 31, 2023
- [+] docs(worker/helper.go): add documentation for withRetries function
- [+] docs(worker/helper.go): add documentation for attemptOperation function
- [+] docs(worker/helper.go): add documentation for waitForNextAttempt function
@H0llyW00dzZ H0llyW00dzZ marked this pull request as ready for review December 31, 2023 21:39
@H0llyW00dzZ H0llyW00dzZ merged commit 34d8a8e into master Dec 31, 2023
2 checks passed
@H0llyW00dzZ H0llyW00dzZ deleted the improved branch December 31, 2023 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant