spring-cloud / spring-cloud-deployer

The Spring Cloud Deployer project defines an SPI for deploying long lived applications and short lived tasks
162 stars 87 forks source link

K8s Task Launcher needs to be thread safe #422

Open cppwfs opened 8 months ago

cppwfs commented 8 months ago

Launching task asynchronously can cause task method values to be overwritten when other threads launch at the same time.

In this solution we synchronize the launch method so that launches are thread safe

cppwfs commented 8 months ago

Refer to issue https://github.com/spring-cloud/spring-cloud-deployer/issues/423