You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
template_fields not working in the decorator task.docker #29585
The templated fields are not working under task.docker
@task.docker(image="python:3.9-slim-bullseye", container_name='python_{{macros.datetime.now() | ts_nodash}}', multiple_outputs=True)deftransform(order_data_dict: dict):
""" #### Transform task A simple Transform task which takes in the collection of order data and computes the total order value. """total_order_value=0forvalueinorder_data_dict.values():
total_order_value+=valuereturn {"total_order_value": total_order_value}
Will throws error with un-templated container_name
Bad Request ("Invalid container name (python_{macros.datetime.now() | ts_nodash}), only [a-zA-Z0-9][a-zA-Z0-9_.-] are allowed")
What you think should happen instead
All these fields should work with docker operator:
Activity
boring-cyborg commentedon Feb 17, 2023
Thanks for opening your first issue here! Be sure to follow the issue template!