[Python] How to get the JobID for the airflow dag runs?

Discussão em 'Python' iniciado por Stack, Novembro 28, 2025.

  1. Stack

    Stack Membro Participativo

    When we execute a dagrun using the Airflow UI, the "Graph View" displays detailed information about each job run.

    JobID is a unique identifier for each job run, typically formatted as scheduled__YYYY-MM-DDTHH:mm:ss.

    I require this JobID for tracking and logging purposes, where I meticulously record the time taken for each task and dagrun.

    Therefore, my question is: How can I obtain the JobID within the same dag that is currently being executed?

    Continue reading...

Compartilhe esta Página