(error: any)
| 75 | // Docker can keep removing after a client timeout, so teardown accepts |
| 76 | // "removal already in progress" without waiting for removal to finish. |
| 77 | const isRemoved = (error: any) => |
| 78 | error?.statusCode === 404 || |
| 79 | (error?.statusCode === 409 && /removal of container .* is already in progress/.test(error.json?.message)) |
| 80 | |
| 81 | // Shared with the regression tests so they exercise the real container finalizer. |
| 82 | export const releasePgContainer = Effect.fnUntraced( |