Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop other containers when --abort-on-container-exit is used #687

Closed
wants to merge 1 commit into from

Conversation

jaikiran
Copy link

@jaikiran jaikiran commented May 2, 2023

podman-compose up, like docker-compose provides a --abort-on-container-exit option to stop the containers that were launched by the up command when any of the other containers exit. In its current form in the devel branch, this isn't functional and the other containers keep running. This is also reported as an issue here #679.

The commit in this PR adds this missing behaviour. I've tested this against one of the projects that I am using podman-compose in. Plus, I've also verified the trivial example that the reporter in #679 provided and it now stops the rest of the containers.

@jaikiran
Copy link
Author

jaikiran commented May 4, 2023

Any thoughts about this change?

@muayyad-alsadi
Copy link
Collaborator

I'm considering moving to python3's builtin asyncio and drop all threads if possible.

I need some time to look into this change.

@jaikiran
Copy link
Author

jaikiran commented May 4, 2023

Thank you @muayyad-alsadi. Please take your time. Looking forward to your changes and will test them out with our project when they are ready.

@hcd3
Copy link

hcd3 commented Sep 6, 2023

Hi @jaikiran and @muayyad-alsadi. Thank you for working on this feature!

Is there any update on this issue? I've run into the error which pertains to this MR and Podman support for the --abort-on-container-exit option would be greatly beneficial.

@Falmarri
Copy link
Contributor

@muayyad-alsadi I have an PR for moving to asyncio that fixes this issue as well #810

@jaikiran
Copy link
Author

jaikiran commented Feb 4, 2024

Closing, now that the asyncio approach has been merged.

@jaikiran jaikiran closed this Feb 4, 2024
@jaikiran jaikiran deleted the abort-on-container-exit branch February 4, 2024 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants