You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
consul-terraform-sync/api/task_create.go
Lines 15 to 16 in a67da4f
The text was updated successfully, but these errors were encountered: