GiganticTurtle0
If there are several tasks running concurrently, which task should
Task.current_task()
return? (
How could you have that ?
Per process, there is one Main current Task (until you close it).
Are you referring to a pipeline with multiple steps ?
If this is the case, task.current_task
will return the Task of the component (if executed form the component) and the pipeline (if called from the pipeline logic function).
Notice we added the ability to send metrics/artifacts directly to the Pipeline Task from any of the pipeline components:
https://github.com/allegroai/clearml/blob/0f2eef3ef4c0dacf980bf6243b910fe16539eb78/clearml/automation/controller.py#L741
https://github.com/allegroai/clearml/blob/0f2eef3ef4c0dacf980bf6243b910fe16539eb78/clearml/automation/controller.py#L755
There is also a way to do that automatically with "monitor_artifacts"/"monitor_metrics"
https://github.com/allegroai/clearml/blob/0f2eef3ef4c0dacf980bf6243b910fe16539eb78/clearml/automation/controller.py#L2497