Skip to content

Commit

Permalink
Image monitor (cont.) (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
steffenrost authored May 8, 2024
1 parent bd1a382 commit 56c6244
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ class ImageMonitor(cluster: String,
if (build != docbuild || ip != docip || pod != docpod) {
// write doc to image store to update metadata (eg invoker ip) if changed. after a new deployment
// zookeeper persistent store is deleted and each invoker will most likely get a new identity (ip)
imageStore.putDoc(id, rev, toJson(images)).flatMap {
// filter out outdates images on sync with image store
imageStore.putDoc(id, rev, toJson(images, true)).flatMap {
case Right(res) if (ip != docip || build != docbuild) =>
waitForEntriesToAppearInView(images.size).flatMap {
case count =>
Expand Down

0 comments on commit 56c6244

Please sign in to comment.