Use Mutagen pause/resume on stopped environments #141
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Mutagen is able to pause and resume sync sessions. I added pause/resume/monitor to the
warden sync
command. Additionally I changed the automatic Mutagen behaviour for the warden environment commands.Now the following should happen:
warden env up -d
when run for the first time should triggerwarden sync start
as beforewarden env down
should triggerwarden sync stop
as beforewarden env stop
should now triggerwarden sync pause
(you can check the status should say paused underwarden sync list
warden env up -d
when run for a previously stopped environment should triggerwarden sync resume
provided the underlying php-fpm container still has the same container id (you can checkwarden sync list
should have the same synchronisation identifier) and we have a paused session