ferruzzi commented on code in PR #67268:
URL: https://github.com/apache/airflow/pull/67268#discussion_r3283217112


##########
providers/celery/tests/unit/celery/executors/test_celery_executor.py:
##########
@@ -919,7 +919,7 @@ def 
test_process_workloads_routes_execute_callback(mock_send_workloads, callback
     executor = celery_executor.CeleryExecutor()
     executor._process_workloads([workload])
 
-    mock_send_workloads.assert_called_once_with([(callback_id, workload, 
expected_queue, None)])
+    mock_send_workloads.assert_called_once_with([(workload.callback.key, 
workload, expected_queue, None)])

Review Comment:
   FWIW, this could just be `workload.key` since the `ExecuteCallback.key` 
property returns `self.callback.key`.  But thanks for fixing this.  I'm curious 
why my PR was green but caused all these issues.   Sorry about that.



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