From 6b4a90213563520566e77f06c1fca4f23fc7ad31 Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Wed, 23 Oct 2024 10:36:50 -0400 Subject: [PATCH] delay MODIFIED events same as FOUND events --- src/main/java/io/cryostat/targets/Target.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/cryostat/targets/Target.java b/src/main/java/io/cryostat/targets/Target.java index d722f7825..fabbf292a 100644 --- a/src/main/java/io/cryostat/targets/Target.java +++ b/src/main/java/io/cryostat/targets/Target.java @@ -314,7 +314,7 @@ void postPersist(Target target) { @PostUpdate void postUpdate(Target target) { - notify(EventKind.MODIFIED, target); + scheduler.schedule(() -> notify(EventKind.MODIFIED, target), 1, TimeUnit.SECONDS); } @PostRemove