Skip to content

Commit

Permalink
Add comment. (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Duftler authored Jun 22, 2016
1 parent 7bcaef3 commit df8d619
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ class BakePoller implements ApplicationListener<ContextRefreshedEvent> {
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).")
Expand Down

0 comments on commit df8d619

Please sign in to comment.