You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nice suggestion @dimaqq!
In any case, would be nice to have an updated doc indicating whether we need to guard a restart at all.
If guarding is needed, then perhaps add a kwarg, stopped_ok: bool?
Interestingly, and somewhat related -- there's a little backwards-compatibility shim in Container.restart for old versions of Pebble (quite old by now) that don't yet have restart, to stop the running services first.
@dimaqq Would you be willing to push up a PR to improve on this in the Container.restart docstring, and the underlying pebble.Client.restart_services docstring? Let's try to keep it brief (ideally one sentence), but indicate 1) that it will force a stop and start if they're already, and 2) won't try to stop services that aren't running, just start them.
The docstring is quite minimal:
operator/ops/model.py
Line 2221 in 808fb8f
In the past we used to:
It would be nice to have it explicitly documented if this is still needed or not.
The text was updated successfully, but these errors were encountered: