MCPcopy Index your code
hub / github.com/Tencent/CodeAnalysis / task_params

Method task_params

server/projects/main/apps/job/models/base.py:362–374  ·  view source on GitHub ↗

任务参数下载

(self)

Source from the content-addressed store, hash-verified

360
361 @property
362 def task_params(self):
363 """任务参数下载
364 """
365 try:
366 if os.path.isfile(self.params_path):
367 with open(self.params_path, "r") as f:
368 return json.loads(f.read())
369 else:
370 content = file_server.get_file(self.params_path)
371 return json.loads(content)
372 except Exception as e:
373 logger.exception(e)
374 return None
375
376 @task_params.setter
377 def task_params(self, params):

Callers

nothing calls this directly

Calls 7

get_project_idMethod · 0.95
get_job_idMethod · 0.95
CDErrorBaseClass · 0.90
exceptionMethod · 0.80
readMethod · 0.45
get_fileMethod · 0.45
put_fileMethod · 0.45

Tested by

no test coverage detected