You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/05/20 08:41:31 UTC

[GitHub] [airflow] Lyalpha edited a comment on issue #8494: TriggerDagOperator sometimes causes database to trigger UniqueViolation constraint

Lyalpha edited a comment on issue #8494:
URL: https://github.com/apache/airflow/issues/8494#issuecomment-631329686


   Also finding this, apparently due to triggering same dag in same second (https://issues.apache.org/jira/browse/AIRFLOW-699 - apparently resolved?)
   
   ```
   from airflow.api.client.local_client import Client
   client = Client(None, None)
   client.trigger_dag(dag_id="my_dag", run_id="one"); client.trigger_dag(dag_id="mydag", run_id="two") 
   ```
   reproduces for me on `1.10.10`, with postgres12 `airflow` database.
   
   Being able to trigger the same dag multiple times a seconds is a deal-breaker - happy to help out if pointed in the right direction for this one.


----------------------------------------------------------------
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:
users@infra.apache.org