NilsJPWerner commented on issue #27523:
URL: https://github.com/apache/airflow/issues/27523#issuecomment-1352127257

   ```python
   with DAG(
     #misc
   ) as dag:
       run_id = "{{ dag_run.conf.get('run_id') or 
data_interval_end.int_timestamp }}"
       updater = create_updater_tasks(run_id)
       morning_block = create_morning_block_tasks()
       updater >> morning_block
   
   
   def create_updater_tasks(run_id: str):
       track_matching = StataOperator(name="track_matching")
   
       with TaskGroup("create_expost_data_with_wps") as 
create_expost_data_group:
           DummyOperator(task_id="do_stuff_1")
   
       with TaskGroup("create_exante_data") as create_exante_data_group:
           DummyOperator(task_id="do_stuff_2")
   
       merge_expost_exante_data = 
StataOperator(name="merge_expost_exante_data", )
   
       start_updater = DummyOperator(task_id="start_updater")
       end_updater = DummyOperator(task_id="end_updater")
   
       start_updater >> track_matching
       track_matching >> create_expost_data_group >> merge_expost_exante_data
       track_matching >> create_exante_data_group >> merge_expost_exante_data 
>> end_updater
       return end_updater
   
   def create_morning_block_tasks():
       with TaskGroup("morning_block") as morning_block_tasks:
           DummyOperator(task_id="do_stuff_3")
   ```
   And here are some examples of it jumping around
   <img width="333" alt="Screen Shot 2022-12-14 at 3 34 53 PM" 
src="https://user-images.githubusercontent.com/10968348/207708328-d9c69074-0b74-4a94-9b15-29605d90b2ba.png";>
   <img width="271" alt="Screen Shot 2022-12-14 at 3 35 15 PM" 
src="https://user-images.githubusercontent.com/10968348/207708343-2593375f-fc72-4199-9aa2-573ced39023b.png";>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to