Skip to content

Update template fields documentation to include more details about asset-triggered DAGs #61149

@roykoand

Description

@roykoand

What do you see as an issue?

Template fields documentation does not include much detail about asset-triggered DAGs and is mostly focused on classical "time-based" DAGs.

For example, it does not mention that asset-triggered DAGs don't have loglical_date, ds, etc in Airflow 3.
Another example, the description of task_instance_key_str is A unique, human-readable key to the task instance. The format is ``{dag_id}__{task_id}__{ds_nodash}``. which is not correct for asset-based worfklows:

"task_instance_key_str": f"{self.task.dag_id}__{self.task.task_id}__{dag_run.run_id}",

Might be a good first issue. I could submit a pull request as well but not this/next week, so would be happy if someone would like to give it a shot.

Solving the problem

No response

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions