Closed jaym closed 5 years ago
I have seen similar behavior where a service that is stopped but we have a spec for and is restarted with different arguments does not get the desired altered behavior and the supervisor simply uses the args that are in the current spec.
@mwrock In this case, the spec file seems to have been written out correctly (i 'cat'd the spec file as the last thing). One thing we've talked to @christophermaier about is the service updater continues to run even after the service is stopped, which seems like its related to this.
@jaym Are you still able to reproduce this?
Though I'm assuming the answer is "yes"...
ill have to test it out tomorrow
@baumanj If we re-cast the service watcher in Tokio, this is something that could naturally fall out.
At the very least, it's something we could tackle as we go.
It's very possible that the work done as part of https://github.com/habitat-sh/habitat/pull/5828 fixed this issue, so I'm going to close it. If you still see the problems reported here, re-open and we'll take a fresh look.
When changing the update strategy of a running service from
at-once
tonone
, hab continues to update it. Below is a studio session in which I reproduced this. The service runs a fairly simple script. Both the old and new are along the lines of:the studio session: