Understanding the "warning=terminated" Message in Runner Logs

Overview

The warning=terminated message in CircleCI Runner logs indicates that the CircleCI runner has received a termination signal and is undergoing a graceful shutdown process. This message is part of the runner's standard operation when it receives a termination (TERM) signal.

Details: Graceful Shutdown Process

When the CircleCI runner receives a TERM signal, it initiates a graceful shutdown by entering a "draining" mode. During this mode, the runner stops accepting new jobs but allows any currently active jobs to complete and then stop the runner process.

This process ensures that the runner can shut down gracefully without abruptly terminating active jobs, thereby maintaining the integrity of ongoing processes.

terminate-runner.gif

"12:55:24 5c6d8 38922.984ms main: run mode=agent result=success service.name=circleci-runner service_name=circleci-runner warning=terminated" 

This log entry confirms that the termination process was initiated, not due to an error but as part of an expected shutdown routine.

Additional Resources

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.