Skip to content
This repository was archived by the owner on Oct 2, 2025. It is now read-only.

Commit 90d2dbb

Browse files
committed
refactor(web): add logging to OperationsController.destroy
so it's more obvious when clouddriver is shutting down.
1 parent cef832b commit 90d2dbb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clouddriver-web/src/main/groovy/com/netflix/spinnaker/clouddriver/controllers/OperationsController.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ class OperationsController {
213213
*/
214214
@PreDestroy
215215
void destroy() {
216+
log.info("Destroy has been triggered. Initiating graceful shutdown of tasks.")
216217
long start = System.currentTimeMillis()
217218
def tasks = taskRepository.listByThisInstance()
218219
while (tasks && !tasks.isEmpty() &&
@@ -225,6 +226,8 @@ class OperationsController {
225226
if (tasks && !tasks.isEmpty()) {
226227
log.error("Shutting down while tasks '{}' are still in progress!", tasks)
227228
}
229+
230+
log.info("Destruction procedure completed.")
228231
}
229232

230233
private StartOperationResult start(@Nullable String cloudProvider,

0 commit comments

Comments
 (0)