uranusjr commented on issue #26751:
URL: https://github.com/apache/airflow/issues/26751#issuecomment-3489637598
It’s not directly supported, but AssetAlias can kind of do this with some
custom code
```python
alias = AssetAlias(name="foo")
def look_up_asset(map_index) -> Asset:
...
@task(outlet=[alias])
def do(map_index, outlet_events):
outlet_events[alias].add(look_up_asset(map_index))
```
More on this in documentation:
https://airflow.apache.org/docs/apache-airflow/stable/authoring-and-scheduling/assets.html#dynamic-data-events-emitting-and-asset-creation-through-assetalias
Does this sound good enough?
--
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]