Is there a way for Airflow to skip current task from the PythonOperator? For example:
def execute():
if condition:
skip_current_task()
task = PythonOperator(task_id='task', python_callable=execute, dag=some_dag)
And also marking the task as "Skipped" in Airflow UI?