Skip to content

Commit

Permalink
[fix](trainer/bridge): connected_at and terminated_at error (#834)
Browse files Browse the repository at this point in the history
* fix(trainer/bridge): connected_at and terminated_at error

* fix: log_level
  • Loading branch information
whisylan authored Jun 1, 2021
1 parent 92055f8 commit 930a4cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fedlearner/common/fl_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}

def _get_level_from_env():
level_name = os.getenv("FL_LOG_LEVEL")
level_name = os.getenv("FL_LOG_LEVEL", "").lower()
if level_name in _name_to_level:
return _name_to_level[level_name]

Expand Down
4 changes: 2 additions & 2 deletions fedlearner/trainer/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ def worker_rank(self):

@property
def connected_at(self):
return self._channel._connected_at
return self._channel.connected_at

@property
def terminated_at(self):
return self._channel._closed_at
return self._channel.closed_at

def _check_iteration_timeout(self):
with self._condition:
Expand Down
2 changes: 1 addition & 1 deletion web_console/components/CommonTicket.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ export default function TicketList({
const insert2Env = filterArrayValue([
{ name: 'DATA_SOURCE', getValue: data => data.datasource },
jobType === JOB_TYPE.nn_model
? { name: 'CODE_KEY', getValue: data => data.code_key, writeTo: ['Worker'] }
? { name: 'CODE_KEY', getValue: data => data.code_key, writeTo: ['Master', 'Worker'] }
: undefined
])
rewriteEnvs(draft, data, insert2Env)
Expand Down

0 comments on commit 930a4cf

Please sign in to comment.