def ready_for_retry(self):
        return self.state == State.UP_FOR_RETRY and \
            self.end_date + self.task.retry_delay < datetime.now()
Checks on whether the task instance is in the right state and timeframe
dataset/ETHPy150Open airbnb/airflow/airflow/models.py/TaskInstance.ready_for_retry