def METHOD_NAME(self, task: ScheduledTask) -> None:
    """
    Schedules the given task and sets the deadline of the task to either ``task.start`` or the current time.
    :param task: the task to schedule
    """
    task.deadline = max(task.start or 0, time.time())
    self.add(task)