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

Use worker pool for smartctl #204

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pokab
Copy link

@pokab pokab commented Feb 27, 2024

Use worker pool to make running of smartctl parallel (for issue #197).

@pokab
Copy link
Author

pokab commented May 11, 2024

@NiceGuyIT could you comment on whether I need to do something else before this PR is likely to be accepted?

@NiceGuyIT
Copy link
Member

Hi @pokab. Addressing PR #205 is first priority. Then I will look at this PR. Thank you for your patience.

Copy link
Contributor

@robbat2 robbat2 left a comment

Choose a reason for hiding this comment

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

LGTM

return
}

pool := createPool()
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems to be implementing a sync.WaitGroup. Or maybe better, use errgroup.Group.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks. Will try to refactor it later, after the fate of #205 is decided.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks. Will try to refactor it later, after the fate of #205 is decided.

Merged. Can you fix the conflicts for merge?

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.

5 participants