You can explore the BranchPythonOperator and ShortCircuitOperator (details
here
<https://airflow.apache.org/docs/apache-airflow/stable/_api/airflow/operators/python/index.html>
)
to see if they suit your use case. However, as TP mentioned, the branches
must be
predefined in your DAG as potential downstream tasks.


On Wed, Oct 9, 2024 at 1:29 PM Tzu-ping Chung <t...@astronomer.io.invalid>
wrote:

> I believe both are impossible. Airflow is designed to run statically
> defined workflows. The triggering of the workflow can be dynamic, and each
> step of the workflow can be dynamic, but the overall structure of the
> workflow must be static; you cannot add things or change their ordering on
> the fly.
>
> TP
>
> > On Oct 9, 2024, at 16:49, Praveen Sharma
> <praveen.sha...@kickdrumtech.com.INVALID> wrote:
> >
> > Hello
> >
> > I just came across apache airflow recently and this looks like a very
> > promising tool. But I have a few questions which I'm not able to find
> > answers to at the moment.
> >
> > Can you guys please help me with this, Can we do these steps in apache
> > airflow. If yes please guide me to the correct documentation and process.
> >
> > 1. Add a New Step in a Running Workflow
> > 2. Change Sequence of Steps dynamically in a Running workflow
> >
> > Your quick help will be highly appreciated. As a new user choosing the
> > right path for the same is confusing.
> >
> > Thanks and Regards
> > Praveen Sharma
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@airflow.apache.org
> For additional commands, e-mail: dev-h...@airflow.apache.org
>
>

Reply via email to