Reputation
Badges 1
383 × Eureka!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
` pipe = PipelineController(
default_execution_queue="minerva-default",
add_pipeline_tags=True,
target_project=pipelines_project,
)
for step in self.config["steps"]:
name = self._experiment_name(step)
pipe.add_step(
name=name,
base_task_project=pipelines_project,
base_task_name=name,
parents=self._get_parents(step),
task_overrides...
This is my code, but it’s pretty standard
AgitatedDove14 - are there cases when it tries to skip steps?
or do you mean agent can convert https url to ssh??
Only allowed to have ssh key, not username-password
AgitatedDove14 either based on scenario