def cancel(self) -> bool:
    if self.restart_on_changes:
        self._current_build.kill()
        return True
    return False
def cancel(self) -> bool:
    if self.restart_on_changes:
        self._current_build.kill()
        return True
    return False