I have been trying to clear a task using the following command. airflow clear -t <task_name> -s <start_date> -e <end_date> <dag_name>
eg: airflow clear -t <task_name> -s 2020-06-22 -e 2020-06-22 <dag_name>
I have also tried to use start date and end date with all the following combinations:
'2020-06-22'
'2020-06-22 10:21:23'
2020-06-23T10:28:15
2020-06-23T07:44:27.814321+00:00
None of these combinations is working for me. I don't understand how to use start_date and end_date with the clear command. I also want to know if we can clear the tasks between the start date and end date.