mirror of
https://github.com/clearml/clearml-agent
synced 2025-01-31 09:06:52 +00:00
Fix --stop checking default queue tag (issue #80)
This commit is contained in:
parent
3c8e0ae5db
commit
2a941e3abf
@ -1278,15 +1278,15 @@ class Worker(ServiceCommandSection):
|
||||
if self._services_mode and dynamic_gpus:
|
||||
raise ValueError("Combining --dynamic-gpus and --services-mode is not supported")
|
||||
|
||||
# if we do not need to create queues, make sure they are valid
|
||||
# match previous behaviour when we validated queue names before everything else
|
||||
queues = self._resolve_queue_names(queues, create_if_missing=kwargs.get('create_queue', False))
|
||||
|
||||
# We are not running a daemon we are killing one.
|
||||
# find the pid send termination signal and leave
|
||||
if kwargs.get('stop', False):
|
||||
return 1 if not self._kill_daemon(dynamic_gpus=dynamic_gpus) else 0
|
||||
|
||||
# if we do not need to create queues, make sure they are valid
|
||||
# match previous behaviour when we validated queue names before everything else
|
||||
queues = self._resolve_queue_names(queues, create_if_missing=kwargs.get('create_queue', False))
|
||||
|
||||
queues_info = [
|
||||
q.to_dict()
|
||||
for q in self._session.send_api(
|
||||
|
Loading…
Reference in New Issue
Block a user