    def log_termination(self, reason=None, task_run:TaskRun=None):
        """Make a log that the task was terminated."""
        reason = reason or "unknown reason"
        msg = self.fmt_log_message.format(action="terminate", task=self.name)
        self._set_status("terminate", task_run, message=msg + f" ({reason})")

        # Reset event and force_termination (for threads)
        self.force_termination = False
Make a log that the task was terminated.
rocketry/core/task.py