CloudSlang / score

CloudSlang Orchestration Engine
http://cloudslang.io
Apache License 2.0
88 stars 47 forks source link

Fix shutdown of service for locks #512

Closed larisabratean closed 2 months ago

larisabratean commented 2 months ago

In case of spring closing, the notEmpty condition was still in await state resulting in delay in the shutdown of service. To be able to fix it, we lock the ReentrantLock to be able to signal the notEmpty condition, and unlock it at the end.