ephraimbuddy commented on PR #55884:
URL: https://github.com/apache/airflow/pull/55884#issuecomment-3311934114

   How to test:
   set a fernet key e.g: 
   export 
AIRFLOW__CORE__FERNET_KEY='8janSoQD86ALy_tnJjR-hcxNweHnUxhfDV61TBntr_4='
   in both init.sh and environment_variables.env in airflow source.
   AF2 uses init.sh for breeze but environment_variables.env is used in AF3.
   
   Switch to airflow 2: `git switch apache/v2-11-stable`
   Add this dag with the target time adjusted to maybe 30mins in the future:
   
   ```python
   from datetime import datetime
   from airflow import DAG
   
   from airflow.sensors.date_time import DateTimeSensorAsync
   
   
   with (DAG("async_trigger_sleep", 
start_date=datetime(2025,9,17),tags=["async_migration"])
         ) as dag:
       DateTimeSensorAsync(
           task_id="wait_for_start",
           target_time=datetime(2025, 9, 19, 11, 26),
   
       )
   ```
   start breeze `breeze start-airflow --backend postgres --executor 
CeleryExecutor`
   Trigger the dag above and stop breeze once the task is deferred.
   Switch to Airflow 3: `git switch main`
   Start breeze: `breeze start-airflow --backend postgres --executor 
CeleryExecutor`
   
   See that when the target time reach, the dag would be successful
   
   


-- 
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