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

Enhancement Multiple-Task when use Lot's of Worker #23

Merged
merged 7 commits into from
Dec 23, 2023
Merged

Conversation

H0llyW00dzZ
Copy link
Owner

No description provided.

- [+] feat(worker): add TrackTask struct to keep track of claimed tasks
- [+] feat(worker): add NewTaskStatusMap function to create a new TaskStatusMap
- [+] feat(worker): add Claim method to claim a task in TaskStatusMap
- [+] feat(worker): add Release method to mark a task as unclaimed in TaskStatusMap
@H0llyW00dzZ H0llyW00dzZ added the enhancement New feature or request label Dec 23, 2023
- [+] chore(init_const.go): add new constant for task number mismatch error message
- [+] refactor(logger.go): remove unnecessary variable assignment and use defer to unlock mutex
- [+] fix(logger.go): fix incorrect log level in LogErrorWithEmoji function
- [+] feat(crew.go): add support for task claiming and releasing in CrewWorker function
- [+] fix(crew.go): fix variable name shipsnamespace to shipsNamespace in CrewWorker function
- [+] fix(crew.go): fix variable name shipsnamespace to shipsNamespace in performTaskWithRetries function
- [+] fix(crew.go): fix variable name shipsnamespace to shipsNamespace in logFinalError function
- [+] fix(crew.go): fix error message format in results channel
- [+] chore(init_const.go): add Worker_Name constant
- [+] refactor(captain.go):
 - Remove unused imports for "language" and "navigator" packages.
 - Replace the logger setup for each worker from "navigator.Logger" to "zap.L().With(zap.Int("worker", workerIndex))".
 - Remove the call to "navigator.SetLogger(workerLogger)" as it is no longer needed.
 - Update the call to "CrewWorker" to include the "taskStatus" parameter.
- [+] docs(README.md): update note to reflect support for multiple tasks and multiple workers
- [+] chore(README.md): update TODO list with more descriptive and specific tasks
@H0llyW00dzZ H0llyW00dzZ marked this pull request as ready for review December 23, 2023 02:37
@H0llyW00dzZ H0llyW00dzZ merged commit 6b58ac7 into master Dec 23, 2023
2 checks passed
@H0llyW00dzZ H0llyW00dzZ deleted the gopher branch December 23, 2023 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant