kaxil commented on a change in pull request #10136:
URL: https://github.com/apache/airflow/pull/10136#discussion_r466970884



##########
File path: airflow/models/dagrun.py
##########
@@ -477,7 +478,14 @@ def verify_integrity(self, session=None):
                 task_instance_mutation_hook(ti)
                 session.add(ti)
 
-        session.commit()
+        try:
+            session.commit()
+        except IntegrityError as err:
+            self.log.info(str(err))
+            self.log.info(f'Hit IntegrityError while creating the TIs for '

Review comment:
       nit
   
   ```suggestion
               self.log.info('Hit IntegrityError while creating the TIs for '
   ```




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