mirror of
https://github.com/clearml/clearml-agent
synced 2025-03-03 10:42:05 +00:00
Allow providing queue names to daemon
This commit is contained in:
parent
596093aac6
commit
f838c8fc70
@ -631,11 +631,13 @@ class Worker(ServiceCommandSection):
|
|||||||
self.log.debug("starting resource monitor thread")
|
self.log.debug("starting resource monitor thread")
|
||||||
print("Worker \"{}\" - ".format(self.worker_id), end='')
|
print("Worker \"{}\" - ".format(self.worker_id), end='')
|
||||||
|
|
||||||
if not queues:
|
if queues:
|
||||||
|
queues = return_list(queues)
|
||||||
|
queues = [self._resolve_name(q, "queues") for q in queues]
|
||||||
|
else:
|
||||||
default_queue = self._session.send_api(queues_api.GetDefaultRequest())
|
default_queue = self._session.send_api(queues_api.GetDefaultRequest())
|
||||||
queues = [default_queue.id]
|
queues = [default_queue.id]
|
||||||
|
|
||||||
queues = return_list(queues)
|
|
||||||
queues_info = [
|
queues_info = [
|
||||||
self._session.send_api(
|
self._session.send_api(
|
||||||
queues_api.GetByIdRequest(queue)
|
queues_api.GetByIdRequest(queue)
|
||||||
|
Loading…
Reference in New Issue
Block a user