Skip to content

Canceling jobs does not stop containers #4

@taxe10

Description

@taxe10

Currently, canceling jobs via mlex_utils does not properly stop the associated Docker/Podman containers. This is because mlex_utils cancels the flow run itself, but the containers are launched from within a bash script. As a result, stopping the main process does not propagate to the child Docker/Podman processes, which continue running in the background.

Expected behavior: Canceling a job should also stop any containers it started.

Potential solutions:

  • Implement a cleanup routine that explicitly stops the containers when the job is canceled.
  • Consider launching containers in a way that ties their lifecycle more directly to the parent process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions