You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "DonHaul (via GitHub)" <gi...@apache.org> on 2024/12/11 16:00:52 UTC
Re: [I] Rendering custom map index before task is run. [airflow]
DonHaul commented on issue #39118:
URL: https://github.com/apache/airflow/issues/39118#issuecomment-2536402554
> since we can define at operator definition the field `map_index_template="{{ task.op_kwargs['date'] }}",`, it can be render by the webserver
this solution does not work if the task is run in a `PythonVirtualEnv` task. The following wont work:
```
@task.virtualenv(
requirements=["inspire-schemas"],
system_site_packages=False,
map_index_template="{{task.op_kwargs['date']}}",
)`
```
Is there a workaround for this specific case?
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org