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

Support parallel task creation #768

Open
mkam opened this issue Mar 15, 2022 · 0 comments
Open

Support parallel task creation #768

mkam opened this issue Mar 15, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@mkam
Copy link
Contributor

mkam commented Mar 15, 2022

Description

The create task API can accept multiple requests in parallel, but can only create one task at a time. An improvement would be to support the task creation in parallel.

The parallel solution must also take into account potential race conditions when there are multiple requests that use the same task name.

Additional context

The calls will block/wait because there is a lock on the create task handler. This was an intentional choice to simplify the workflow for the initial release of the create task API.

h.mu.Lock()
defer h.mu.Unlock()

@mkam mkam added the enhancement New feature or request label Mar 15, 2022
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

No branches or pull requests

1 participant