Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
client: Give a copy of clientconfig to allocrunner
Currently, there is a race condition between creating a taskrunner, and updating node attributes via fingerprinting. This is because the taskenv builder will try to iterate over the clientconfig.Node.Attributes map, which can be concurrently updated by the fingerprinting process, thus causing a panic. This fixes that by providing a copy of the clientconfg to the allocrunner inside the Read lock during config creation.
- Loading branch information