Is possible that I can create task dependencies based on XCOMS on Airflow?
No. You can not edit the structure of the DAG once it starts running. So you can’t change dependencies or add new tasks (fan out). You can make a decision that impacts the path a dag takes. So, you can use the BranchPythonOperator
to consume xcom from a prior task and make a decision which path to follow in your dag. (marking tasks in the unchosen path as skipped)