If you want to get the pipeline task from a pipeline step, try Task.current_task().parent
But when I call Task.current_task().task_id
within the code of one of the pipeline components, I get the task ID of the component itself. I want the pipeline task ID
You can always get the running task (the pipeline in your case) with Task.current_task().task_id
But I was actually asking about accessing the Pipeline task ID, not the tasks corresponding to the components.
Oh, I see. I guess somehow I can retrieve that information via Task.logger
, since it is stored in JSON format? Thanks!
Hi GiganticTurtle0 ,
You have all the tasks that are part of the pipeline in an execution table (with links) under plots
section, does it helps?