uranusjr commented on PR #32000:
URL: https://github.com/apache/airflow/pull/32000#issuecomment-1655252586

   Tried to debug this. If you run this locally with the global 60s timeout 
disabled, the test actually passes after about 70 seconds. This is because a 
sensor’s default poke interval is 60 seconds, and if you ask it to wait for 1s 
after the current time, that’s actually how long it’d take to recheck (the 
extra 10-ish seconds is just overhead), and since `DAG.test()` is blocking by 
design, the test would hang for that long.
   
   The solution would be to add e.g. `poke_interval=0.1` to the sensor. (The 
value is arbitrary, just short enough to make things reasonable.)


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