You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by bd...@apache.org on 2023/04/13 06:19:27 UTC

[openwhisk] branch master updated: fix action not processing metric (#5395)

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 <bd...@gmail.com>
AuthorDate: Wed Apr 12 23:19:19 2023 -0700

    fix action not processing metric (#5395)
    
    Co-authored-by: Brendan Doyle <br...@qualtrics.com>
---
 .../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