canonical / jhack

Chock-full of Juju hackery.
Apache License 2.0
50 stars 24 forks source link

Watching relations does not show new units #94

Closed gboutry closed 1 year ago

gboutry commented 1 year ago

Using juju show-relation --watch on a relation does not show units added.

Workaround is to exit jhack and re-run the command.

As a reference, the command actually ran:

jhack show-relation --show-juju-keys barbican:secrets vault:secrets --watch
PietroPasotti commented 1 year ago

good catch! there is an issue with caching. In an earlier effort to reduce the flickering and speed up jhack, I overcached some juju status calls resulting in unit additions not being detected. Should be an easy fix (but performance will decrease until I find some other way to work around the limitation).