def _shutdown_timer(self) -> None:
remaining = self._max_run_time - self.uptime<EOL>if not self.shutdown_pending.wait(remaining):<EOL><INDENT>logger.warning('<STR_LIT>')<EOL>self.shutdown()<EOL><DEDENT>
Counts down from MAX_WORKER_RUN_TIME. When it reaches zero sutdown
        gracefully.