openedx / wg-devops

Issue repository for the DevOps Working Group
1 stars 2 forks source link

Automatically stop nightly containers when starting stable, and vice versa #41

Open kdmccormick opened 2 years ago

kdmccormick commented 2 years ago

We discussed elsewhere why this would be difficult, but this still happens enough to me that I'd like it in the backlog as an issue, even if we never get to it.

kdmccormick commented 2 years ago

I implemented this as a plugin: https://github.com/kdmccormick/tutor-contrib-kdmccormick#stopnightly Source: https://github.com/kdmccormick/tutor-contrib-kdmccormick/blob/master/tutorkdmccormick/stopnightly.py

Unfortunately the plugin is hacky in a couple ways: