mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-12-03 13:11:05 +00:00
removeContainer and removeNetwork discarded Docker transport failures and non-2xx statuses, so Kill could clear the worker ID and return nil while the worker kept running, and Delete removed the task from the in-memory map before killing, ignored the resulting not-found, and cleaned up unchecked. removeContainer/removeNetwork now return errors (404 counts as proven absent), Kill clears the worker ID only after the container is proven stopped or absent, and Delete kills from the captured task state, keeps the entry until every resource is proven gone, and returns a retryable error otherwise. Cleanup runs on a fresh bounded context instead of inheriting a cancelled request, and a per-task mutex serializes concurrent Kill/Delete. |
||
|---|---|---|
| .. | ||
| client.go | ||
| docker.go | ||
| docker_cleanup_test.go | ||
| docker_e2e_test.go | ||
| policy.go | ||
| proxy.go | ||
| runner.go | ||
| sandbox_test.go | ||
| types.go | ||
| validate.go | ||