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

feat: add state properties to worker #620

Merged
merged 5 commits into from
Aug 2, 2024

Conversation

metcoder95
Copy link
Member

@metcoder95 metcoder95 commented Jul 26, 2024

No description provided.

@metcoder95 metcoder95 changed the base branch from current to feat/custom_balancer July 28, 2024 09:32
@metcoder95 metcoder95 marked this pull request as ready for review July 28, 2024 11:35
src/worker_pool/index.ts Outdated Show resolved Hide resolved
@metcoder95 metcoder95 requested a review from ronag July 31, 2024 08:21
test/workers.ts Outdated Show resolved Hide resolved
currentUsage: this.currentUsage(),
isRunningAbortableTask: this.isRunningAbortableTask(),
get id () {
return parent.worker.threadId.toString();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why to string?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its a number by default, was wondering if shall we keep it like this or better parse it as string

Copy link
Collaborator

@ronag ronag Jul 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest to keep it as a number. More efficient to use than a string.

@metcoder95 metcoder95 mentioned this pull request Jul 31, 2024
10 tasks
metcoder95 and others added 2 commits July 31, 2024 11:32
Co-authored-by: Robert Nagy <ronagy@icloud.com>
@metcoder95 metcoder95 merged commit 176c399 into feat/custom_balancer Aug 2, 2024
1 of 10 checks passed
@metcoder95 metcoder95 deleted the feat/worker-events branch August 2, 2024 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants