Skip to content

Commit

Permalink
feat(redis_migration): log if there are still pending orchestrations/…
Browse files Browse the repository at this point in the history
…pipelines
  • Loading branch information
asher committed Sep 19, 2017
1 parent 65e322c commit c1544dc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,16 @@ class MultiRedisOrchestrationMigrationNotificationAgent extends AbstractPollingN
.single()

if (migratableOrchestrations.isEmpty()) {
def pendingOrchestrations = executionRepositoryPrevious
.retrieveOrchestrationsForApplication(applicationName, executionCriteria)
.filter({ orchestration -> !orchestration.status.isComplete() })
.toList()
.toBlocking()
.single()

if (!pendingOrchestrations.isEmpty()) {
log.info("${pendingOrchestrations.size()} orchestrations yet to complete ${applicationName}) [${index}/${allApplications.size()}]")
}
return
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,16 @@ class MultiRedisPipelineMigrationNotificationAgent extends AbstractPollingNotifi
.single()

if (migratablePipelines.isEmpty()) {
def pendingPipelines = executionRepositoryPrevious
.retrievePipelinesForPipelineConfigId(pipelineConfigId, executionCriteria)
.filter({ pipeline -> !pipeline.status.isComplete() })
.toList()
.toBlocking()
.single()

if (!pendingPipelines.isEmpty()) {
log.info("${pendingPipelines.size()} pipelines yet to complete (${pipelineConfigId}) [${index}/${allPipelineConfigIds.size()}]")
}
return
}

Expand Down

0 comments on commit c1544dc

Please sign in to comment.