This is an automated email from the ASF dual-hosted git repository.

bdoyle pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk.git


The following commit(s) were added to refs/heads/master by this push:
     new 4e2dea12c fix action not processing metric (#5395)
4e2dea12c is described below

commit 4e2dea12c7b0cfe14dcb509685cc9097d6007e19
Author: Brendan Doyle <[email protected]>
AuthorDate: Wed Apr 12 23:19:19 2023 -0700

    fix action not processing metric (#5395)
    
    Co-authored-by: Brendan Doyle <[email protected]>
---
 .../org/apache/openwhisk/core/scheduler/queue/MemoryQueue.scala      | 5 +++++
 1 file changed, 5 insertions(+)

diff --git 
a/core/scheduler/src/main/scala/org/apache/openwhisk/core/scheduler/queue/MemoryQueue.scala
 
b/core/scheduler/src/main/scala/org/apache/openwhisk/core/scheduler/queue/MemoryQueue.scala
index c3e1ee219..ccd53dce5 100644
--- 
a/core/scheduler/src/main/scala/org/apache/openwhisk/core/scheduler/queue/MemoryQueue.scala
+++ 
b/core/scheduler/src/main/scala/org/apache/openwhisk/core/scheduler/queue/MemoryQueue.scala
@@ -1222,6 +1222,11 @@ object MemoryQueue {
           LoggingMarkers
             .SCHEDULER_QUEUE_NOT_PROCESSING(invocationNamespace, 
action.asString, action.toStringWithoutVersion),
           1)
+      } else {
+        MetricEmitter.emitGaugeMetric(
+          LoggingMarkers
+            .SCHEDULER_QUEUE_NOT_PROCESSING(invocationNamespace, 
action.asString, action.toStringWithoutVersion),
+          0)
       }
 
       queueRef ! DropOld

Reply via email to