turbaszek commented on issue #10790:
URL: https://github.com/apache/airflow/issues/10790#issuecomment-688720218


   As it was reported in original issue and comments this behavior should be 
possible to reproduce in case of fast sensors in reschedule mode. That's why I 
was trying to use many DAGs like this:
   
   ```py
   from random import choice
   from airflow.utils.dates import days_ago
   from airflow.sensors.base_sensor_operator import BaseSensorOperator
   from airflow.operators.bash_operator import BashOperator
   from airflow import DAG
   import time
   
   
   class TestSensor(BaseSensorOperator):
       def __init__(self, **kwargs):
           super().__init__(**kwargs)
           self.mode = "RESCHEDULE"
   
       def poke(self, context):
           time.sleep(5)
           return choice([True, False, False])
   
   
   args = {"owner": "airflow", "start_date": days_ago(1)}
   
   
   with DAG(
       dag_id="%s",
       is_paused_upon_creation=False,
       max_active_runs=100,
       default_args=args,
       schedule_interval="0 * * * *",
   ) as dag:
       start = BashOperator(task_id="start", bash_command="echo 42")
       end = BashOperator(task_id="end", bash_command="echo 42")
       for i in range(3):
           next = TestSensor(task_id=f"next_{i}")
           start >> next >> end
   ```
   
   And I was also playing with airflow config settings as described in 
comments. I did some tests with external task sensor but also no results. 


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

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


Reply via email to