ionutzpi commented on code in PR #41:
URL: 
https://github.com/apache/sling-org-apache-sling-event/pull/41#discussion_r2041867295


##########
src/main/java/org/apache/sling/event/impl/jobs/JobManagerImpl.java:
##########
@@ -202,6 +218,12 @@ public void run() {
      */
     @Override
     public void handleEvent(final Event event) {
+        // Check health status before handling events
+        checkHealthStatus();
+        if (!isHealthy) {
+            logger.warn("System is not healthy. Aborting operation.");

Review Comment:
   Removed changes.



##########
src/main/java/org/apache/sling/event/impl/jobs/JobManagerImpl.java:
##########
@@ -190,6 +200,12 @@ protected void deactivate() {
      */
     @Override
     public void run() {
+        // Check health status before running maintenance
+        checkHealthStatus();
+        if (!isHealthy) {
+            logger.warn("System is not healthy. Aborting operation.");

Review Comment:
   Removed changes.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@sling.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to