Skip to content

Commit 4aa6304

Browse files
Health endpoint returns running time
1 parent b697120 commit 4aa6304

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/pwabuilder/Controllers/AnalysesController.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,15 @@ public async Task<ActionResult> Health([FromServices] AnalysisJobProcessorHealth
109109
{
110110
errorMessage = "Fewer than 5 analysis jobs have been started in the last hour, and there are jobs in the queue. This may indicate that the AnalysisJobProcessor background service is not starting jobs. Check the job processor to ensure it's running and starting jobs.";
111111
}
112-
112+
113113
var healthMonitorJson = new
114114
{
115115
healthMonitor.JobProcessorStopped,
116116
healthMonitor.AnalysisQueueLength,
117117
healthMonitor.JobsCompletedCount,
118118
healthMonitor.JobsCompletedInLastHourCount,
119119
healthMonitor.JobsStartedInLastHourCount,
120+
healthMonitor.RunningTime,
120121
ErrorMessage = errorMessage,
121122
};
122123

0 commit comments

Comments
 (0)