From df8d619bb0cc11a82a4616d341dce318c49a3a65 Mon Sep 17 00:00:00 2001 From: Matt Duftler Date: Wed, 22 Jun 2016 13:46:20 -0400 Subject: [PATCH] Add comment. (#110) --- .../com/netflix/spinnaker/rosco/executor/BakePoller.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rosco-core/src/main/groovy/com/netflix/spinnaker/rosco/executor/BakePoller.groovy b/rosco-core/src/main/groovy/com/netflix/spinnaker/rosco/executor/BakePoller.groovy index 02159d289..5a8af0f30 100644 --- a/rosco-core/src/main/groovy/com/netflix/spinnaker/rosco/executor/BakePoller.groovy +++ b/rosco-core/src/main/groovy/com/netflix/spinnaker/rosco/executor/BakePoller.groovy @@ -116,6 +116,8 @@ class BakePoller implements ApplicationListener { long lastUpdatedTimeSeconds = TimeUnit.MILLISECONDS.toSeconds(bakeStatus.updatedTimestamp) long eTimeMinutes = TimeUnit.SECONDS.toMinutes(currentTimeSeconds - lastUpdatedTimeSeconds) + // This can only be true if the rosco instance that owns this bake has not been updating the status. + // Note that this only applies to bakes owned by _other_ rosco instances, not _this_ one. if (eTimeMinutes >= orphanedJobTimeoutMinutes) { log.info("The staleness of bake $statusId ($eTimeMinutes minutes) has met or exceeded the " + "value of orphanedJobTimeoutMinutes ($orphanedJobTimeoutMinutes minutes).")