Reputation
Badges 1
383 × Eureka!Doing this with one step - https://github.com/allegroai/clearml/blob/master/examples/pipeline/pipeline_controller.py
Maybe related to doing in notebook. Doing a task.close() finished it as expected
And exact output after the package install and stuff:
Environment setup completed successfully Starting Task Execution: None
This worked well:
if project_name is None and Task.current_task() is not None: project_name = Task.current_task().get_project_name()
(I need this because I refer to datasets in the same project but without specifying the project name)
Thoughts AgitatedDove14 SuccessfulKoala55 ? Some help would be appreciated.
I get other things from the project like the dataset
SuccessfulKoala55 AgitatedDove14 - this is the example I recreated in demo server - https://demoapp.trains.allegro.ai/projects/ce59885cb4df4cd1afa34aa5b593bb54/experiments/58e02b02d1714f58a590e2335a0f2ab7/execution?columns=selected&columns=type&columns=name&columns=tags&columns=status&columns=project.name&columns=users&columns=started&columns=last_update&columns=last_iteration&columns=parent.name&order=-last_update
The first line of it is getting a dataset and it’s failing with no project name
It’s essentially this now:
from clearml import Task print(Task.current_task())
yeah i was trying in local and it worked as expected. But in local I was creating a Task first and then seeing if it’s able to get project name from it
But that itself is running in a task right?
Looks like Task.current_task() is indeed None in this case. Bit of log below where I print(Task.current_task()) as first step in the script
Environment setup completed successfully Starting Task Execution: None
AgitatedDove14 - the actual replication failed. When we run a task by cloning and enqueueing, there is a current task even if I am yet to do a Task.init right?
It’s a task, it’s running in context of a project, but I don’t have a way to get the project name
How can a task running like this know its own project name?
AS in clone the task from the UI and run it
Essentially - 1. run a task normally. 2. clone 3. edit to have only those two lines.
Question - since this is a task, why is Task.currnet_task() None?
As in I am cloning a task and running it and in that takes without doing any Task.init i am trying to get the task that is running
Is there a good way to get the project of a task?
From the code - it’s supposed to not cache if task override is different? I also have task_override that adds a version which changes each run
pipeline code itself is pretty standard