Taragolis commented on code in PR #34278:
URL: https://github.com/apache/airflow/pull/34278#discussion_r1321988378


##########
airflow/api/common/mark_tasks.py:
##########
@@ -541,7 +541,7 @@ def __set_dag_run_state_to_running_or_queued(
     """
     res: list[TaskInstance] = []
 
-    if not (execution_date is None) ^ (run_id is None):
+    if (execution_date is None) == (run_id is None):

Review Comment:
   ```suggestion
       if not exactly_one(execution_date, run_id):
   ```
   WDYT?



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