mirror of
https://github.com/clearml/clearml-agent
synced 2025-01-31 09:06:52 +00:00
Fix task status change to queued should also never happen during Task runtime
This commit is contained in:
parent
2c8d7d3d9a
commit
699d13bbb3
@ -104,6 +104,7 @@ log = logging.getLogger(__name__)
|
|||||||
DOCKER_ROOT_CONF_FILE = "/root/trains.conf"
|
DOCKER_ROOT_CONF_FILE = "/root/trains.conf"
|
||||||
DOCKER_DEFAULT_CONF_FILE = "/root/default_trains.conf"
|
DOCKER_DEFAULT_CONF_FILE = "/root/default_trains.conf"
|
||||||
|
|
||||||
|
|
||||||
@attr.s
|
@attr.s
|
||||||
class LiteralScriptManager(object):
|
class LiteralScriptManager(object):
|
||||||
"""
|
"""
|
||||||
@ -212,6 +213,7 @@ class TaskStopSignal(object):
|
|||||||
statuses.stopped,
|
statuses.stopped,
|
||||||
statuses.failed,
|
statuses.failed,
|
||||||
statuses.published,
|
statuses.published,
|
||||||
|
statuses.queued,
|
||||||
]
|
]
|
||||||
default = TaskStopReason.no_stop
|
default = TaskStopReason.no_stop
|
||||||
stopping_message = "stopping"
|
stopping_message = "stopping"
|
||||||
@ -437,7 +439,7 @@ class Worker(ServiceCommandSection):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def run_one_task(self, queue, task_id, worker_args, docker=None):
|
def run_one_task(self, queue, task_id, worker_args, docker=None):
|
||||||
# type: (Text, Text, WorkerParams) -> ()
|
# type: (Text, Text, WorkerParams, Optional[Text]) -> ()
|
||||||
"""
|
"""
|
||||||
Run one task pulled from queue.
|
Run one task pulled from queue.
|
||||||
:param queue: ID of queue that task was pulled from
|
:param queue: ID of queue that task was pulled from
|
||||||
|
Loading…
Reference in New Issue
Block a user