forked from beimingwu/beimingwu
fix(backend): log environment detail
This commit is contained in:
parent
5b507bf81a
commit
b528368ee3
|
@ -72,7 +72,9 @@ def update_learnware_yaml_file(learnware_path, learnware_id, semantic_spec_filen
|
||||||
|
|
||||||
def worker_process_func(q: queue.Queue, env: dict):
|
def worker_process_func(q: queue.Queue, env: dict):
|
||||||
if env is not None:
|
if env is not None:
|
||||||
|
context.logger.info(f"received env: {env}")
|
||||||
os.environ.update(env)
|
os.environ.update(env)
|
||||||
|
context.logger.info(f"set env: {os.environ}")
|
||||||
pass
|
pass
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
@ -85,7 +87,6 @@ def worker_process_func(q: queue.Queue, env: dict):
|
||||||
|
|
||||||
dbops.update_learnware_verify_status(learnware_id, LearnwareVerifyStatus.PROCESSING)
|
dbops.update_learnware_verify_status(learnware_id, LearnwareVerifyStatus.PROCESSING)
|
||||||
|
|
||||||
context.logger.info(f"env1: {os.environ}")
|
|
||||||
try:
|
try:
|
||||||
learnware_dirpath, semantic_specification = restful_wrapper.get_learnware(learnware_id)
|
learnware_dirpath, semantic_specification = restful_wrapper.get_learnware(learnware_id)
|
||||||
learnware_check_status = BaseChecker.NONUSABLE_LEARNWARE
|
learnware_check_status = BaseChecker.NONUSABLE_LEARNWARE
|
||||||
|
|
Loading…
Reference in New Issue