    async def terminate_all(self, reason:str=None):
        """Terminate all running tasks."""
        for task in self.tasks:
            if task.is_alive():
                await self.terminate_task(task, reason=reason)
Terminate all running tasks.
rocketry/core/schedule.py