From 983153ba130b8ba5c61928a7a95f88fb5c5eb1ad Mon Sep 17 00:00:00 2001 From: Rahul Patel Date: Tue, 2 May 2023 13:34:05 -0400 Subject: [PATCH] expose per projection execution timeout config --- .../projections/controllers/ProjectionsItemConfigCtrl.js | 1 + src/js/modules/projections/templates/templates.js | 2 +- .../projections/views/projections.item.config.tpl.html | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/js/modules/projections/controllers/ProjectionsItemConfigCtrl.js b/src/js/modules/projections/controllers/ProjectionsItemConfigCtrl.js index b16d455a..8fed2efd 100644 --- a/src/js/modules/projections/controllers/ProjectionsItemConfigCtrl.js +++ b/src/js/modules/projections/controllers/ProjectionsItemConfigCtrl.js @@ -44,6 +44,7 @@ define(['./_module'], function (app) { pendingEventsThreshold: $scope.config.pendingEventsThreshold, maxWriteBatchLength: $scope.config.maxWriteBatchLength, maxAllowedWritesInFlight: $scope.config.maxAllowedWritesInFlight, + projectionExecutionTimeout: $scope.config.projectionExecutionTimeout, }; projectionsService.updateConfiguration($scope.location, param) .then(function () { diff --git a/src/js/modules/projections/templates/templates.js b/src/js/modules/projections/templates/templates.js index 8f5aace6..6975599c 100644 --- a/src/js/modules/projections/templates/templates.js +++ b/src/js/modules/projections/templates/templates.js @@ -6,7 +6,7 @@ try { } module.run(['$templateCache', function($templateCache) { $templateCache.put('projections.item.config.tpl.html', - '

{{stats.name}} - {{stats.status}}

mode: {{stats.mode}}

{{stats.stateReason}}

Projection Configuration
Emit Enabled
Track Emitted Streams
Checkpoint After (ms)
Checkpoint Handled Threshold
Checkpoint Unhandled Threshold (bytes)
Pending Events Threshold
Max Write Batch Length
Maximum Number Of Allowed Writes In Flight
'); + '

{{stats.name}} - {{stats.status}}

mode: {{stats.mode}}

{{stats.stateReason}}

Projection Configuration
Emit Enabled
Track Emitted Streams
Checkpoint After (ms)
Checkpoint Handled Threshold
Checkpoint Unhandled Threshold (bytes)
Pending Events Threshold
Max Write Batch Length
Maximum Number Of Allowed Writes In Flight
Per Event Projection Processing Timeout
'); }]); })(); diff --git a/src/js/modules/projections/views/projections.item.config.tpl.html b/src/js/modules/projections/views/projections.item.config.tpl.html index 87cd653c..0e1ad1eb 100644 --- a/src/js/modules/projections/views/projections.item.config.tpl.html +++ b/src/js/modules/projections/views/projections.item.config.tpl.html @@ -73,5 +73,11 @@

+ + Per Event Projection Processing Timeout + + + +