From 06a716fe8b0b08df047598538b69a0a575e312ae Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Sat, 15 Jun 2019 00:31:28 +0300 Subject: [PATCH] Remove redundant kwargs --- trains/task.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/trains/task.py b/trains/task.py index 635e789c..0eb45dcc 100644 --- a/trains/task.py +++ b/trains/task.py @@ -122,7 +122,6 @@ class Task(_Task): output_uri=None, auto_connect_arg_parser=True, auto_connect_frameworks=True, - **kwargs ): """ Return the Task object for the main execution task (task context). @@ -186,9 +185,7 @@ class Task(_Task): if task_type is None: # Backwards compatibility: if called from Task.current_task and task_type # was not specified, keep legacy default value of TaskTypes.training - __from_current_task = kwargs.pop("__from_current_task", False) - if __from_current_task: - task_type = cls.TaskTypes.training + task_type = cls.TaskTypes.training try: if not running_remotely(): @@ -406,6 +403,8 @@ class Task(_Task): task.id, ), ) + # make sure everything is in sync + task.reload() # make sure we see something in the UI threading.Thread(target=LoggerRoot.flush).start() return task