mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
The Docker runner's stop() sent the driver a docker stop and caught only a 404 or a 304. Any other Docker error escaped the executor task that cancels a run, unlogged, and the run stayed CANCELLING until its driver exited by itself, which a STREAMING run's never does. stop() now only marks the run as stopping. The run's own thread, which looks at the driver every 250 ms, reads the mark at its next look, ends the run and removes the driver, as it does at a timeout, so no Docker error can lose a cancel. The removal is ContainerLifecycleManager's stopAndRemove, which logs what Docker refuses and removes by force. Follow-up to #6469.