Skip to content

Commit

Permalink
WIP: see MFP issue 3393 to add missing observability.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebr72 committed Sep 3, 2024
1 parent 0e98220 commit 01314cc
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@ protected Result check() throws Exception {
if (jobManager.getLastExecutedJobTimestamp() == null) {
return Result.unhealthy("No print job was ever processed by this server" + health);
} else if (hasThisServerPrintedRecently()) {
// WIP (See issue https://github.com/mapfish/mapfish-print/issues/3393)
if (waitingJobsCount > maxNbrPrintJobQueued) {
return Result.unhealthy(
"Number of print jobs queued is above threshold: " + maxNbrPrintJobQueued + health);
"WIP: Number of print jobs queued is above threshold: "
+ maxNbrPrintJobQueued
+ health);
} else {
return Result.healthy("This server instance is printing" + health);
}
Expand Down

0 comments on commit 01314cc

Please sign in to comment.