Hi I'm using latest versions and experiencing a bug. I created a controller in a new project. Just after that I clone a task and give it the new project name to clone into. It fails to create the task:
Code:
task = Task.init(project_name=self.regression_config.regression_project_name, task_name=regression_block.block_name, task_type=Task.TaskTypes.controller, reuse_last_task_id=False) pipe = PipelineController(default_execution_queue=self.regression_config.queue, add_pipeline_tags=True) base_task = Task.get_task(project_name=BASE_TASKS_PROJECT, task_name=BASE_TASKS[block_type][engine]) cloned_task = Task.clone(base_task, project=self.regression_project_name, name=BASE_TASKS[block_type][engine])
Error:
File "/home/egarbin/.conda/envs/regression/lib/python3.6/site-packages/trains/task.py", line 782, in clone parent=parent, project=project) File "/home/egarbin/.conda/envs/regression/lib/python3.6/site-packages/trains/backend_interface/task/task.py", line 1664, in _clone_task res = cls._send(session=session, log=log, req=req) File "/home/egarbin/.conda/envs/regression/lib/python3.6/site-packages/trains/backend_interface/base.py", line 89, in _send raise SendError(res, error_msg) trains.backend_interface.session.SendError: Action failed <400/401: tasks.create/v1.0 (Invalid project id: id=first_attempt)> (name=train_inspection, type=training, comment=Auto-generated at 2020-10- 07 08:14:21 UTC by egarbin@bert
But I do see the pipeline created under the new project
I've tried putting between pipe and base_task a 10 second sleep but that doesn't help.