Reputation
Badges 1
7 × Eureka!For debug purposes, in main:if __name__ == "__main__": prms = enqueue_task({}, "Test task", Task.TaskTypes.custom) print(prms) print("Finished main")
And the "print" gets ignored in the enqueued task
Thanks for the help!
Hi SuccessfulKoala55 , thanks for the quick reply!
This is a stand-alone code, that creates a task, clones it, and enqueues the cloned task:
` def enqueue_task(trains_prms, task_name, task_type):
# Connect to trains
task = Task.init("OMD", task_name='Temp controller for ' + task_name, task_type=task_type) # , task_type=Task.TaskTypes.controller
# Select queue
trains_queue = "cpu_queue"
# Connect parameters
assert "is_controller_run" not in trains_prms
trains_p...
Thanks for the quick reply!
Indeed, it works!
Thanks a lot 🙂
It appears to be working now (though I'm still debugging).
Setting the conda environment directly appeared to have solved it:task.set_base_docker(conda_env)
Yes!
Thanks Martin.
As you said, changing the order indeed resulted in a working code snippet that correctly identifies the working directory.
From there, it was easy to debug and solve the actual problem.
Thanks!