uranusjr commented on code in PR #29608:
URL: https://github.com/apache/airflow/pull/29608#discussion_r1132087844


##########
airflow/cli/commands/task_command.py:
##########
@@ -596,6 +597,10 @@ def task_test(args, dag=None):
         task, args.map_index, 
exec_date_or_run_id=args.execution_date_or_run_id, create_if_necessary="db"
     )
 
+    xcoms = args.xcoms or []
+    _validate_injected_xcoms(xcoms, task)

Review Comment:
   > Also the exception raised from there will lack the [context]
   
   You can raise something other than AirflowException (I don’t see why you 
need to raise that exception), and catch it here to provide the additional 
context.



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