mercure-imaging / mercure

mercure DICOM Orchestrator
https://mercure-imaging.org
MIT License
66 stars 32 forks source link

Cleaner service does not shutdown before end of waiting interval #57

Open tblock79 opened 1 year ago

tblock79 commented 1 year ago

Describe the bug If the Cleaner service is stopped or restarted, the shutdown of the active instance is delayed until the cleaner interval has expired (by default 60 sec). Therefore, the shutdown or restart of the service can take up to one full second. The reason is that the asyncio eventloop has been put to sleep for the interval. It should be checked if it would be possible to cancel the sleep.