The GitHub Actions job "Tests" on airflow.git has failed.
Run started by GitHub user jedcunningham (triggered by jedcunningham).

Head commit for run:
5d1270c32b2739bcd91ed6b3e47fe8b5f8f75f13 / Ash Berlin-Taylor <[email protected]>
Resolve XComArgs before trying to unmap MappedOperators (#22975)

Many operators do some type validation inside `__init__`
(DateTimeSensor for instance -- which requires a str or a datetime)
which then fail when mapped as they get an XComArg instead.

To fix this we have had to change the order we unmap and resolve
templates:

- first we get the unmapping kwargs, we resolve expansion/mapping args
  in that
- Then we create the operator (this should fix the constructor getting
  XComArg problem)
- Then we render templates, but only for values that _weren't_ expanded
  already

Unmapping the task early in LocalTaskJob causes problems, and it's just
not needed as it is (correctly) unmapped inside
TaskInstance._execute_task_with_callbacks call to
`self.render_templates()`

Report URL: https://github.com/apache/airflow/actions/runs/2164968553

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to