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

parallelise epoch processing subtasks #12191

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

shotasilagadze
Copy link
Contributor

@shotasilagadze shotasilagadze commented Oct 3, 2024

Parallelising some tasks by using worker pool.

Worker pool will save (last)error if any task returns it and we return it by Error() call after closing worker pool

we do:

wp := CreateWorkerPool(runtime.NumCPU())
wp.AddWork(func() error { some work })
wp.WaitAndClose()
return wp.Error()

@shotasilagadze shotasilagadze force-pushed the parallelise-epoch-processing-subtasks branch 11 times, most recently from 9055ddc to 2a560ab Compare October 4, 2024 09:03
@shotasilagadze shotasilagadze force-pushed the parallelise-epoch-processing-subtasks branch 14 times, most recently from cd1a056 to e4a963a Compare October 8, 2024 09:45
@shotasilagadze shotasilagadze force-pushed the parallelise-epoch-processing-subtasks branch from e4a963a to e758745 Compare October 8, 2024 09:49
@Giulio2002 Giulio2002 merged commit e6a0caa into main Oct 8, 2024
11 checks passed
@Giulio2002 Giulio2002 deleted the parallelise-epoch-processing-subtasks branch October 8, 2024 19:53
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.

3 participants