Unanswered
Hello Clearml Community,
Does Anyone Have An Idea How I Could Integrate/Manager Carla (
Here is how my start_carla .py task looks like currently:
` import os
import subprocess
from time import sleep
from clearml import Task
from clearml.config import running_remotely
def create_task(node):
task = Task.create(
project_name="examples",
task_name="start-carla",
repo="myrepo",
branch="carla-clearml-integration",
script="src/start_carla_task.py",
working_directory="src",
packages=["clearml"],
add_task_init_call=False,
)
return task
if name == "main":
task = Task.init(project_name="examples", task_name="start-carla", task_type="application")
task_carla_server_blueprint = Task.get_task(project_name="examples", task_name="carla-server")
task_carla_server = Task.clone(source_task=task_carla_server_blueprint, name="carla-server")
Task.enqueue(task_carla_server, queue_name="carla")
port = None
while not port:
task_carla_server.reload()
port = task_carla_server.get_parameter("General/port")
sleep(1)
task.set_parameter("General/server_task_id", task_carla_server.id)
task.set_parameter("General/port", port) `
125 Views
0
Answers
2 years ago
one year ago