def METHOD_NAME(self) -> timedelta | None:
    """Get the time until the next run of this task."""
    if not self.running:
        return None
    next_run = self.next_run
    return next_run - datetime.now() if next_run is not None else None