任务参数下载
(self)
| 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): |
nothing calls this directly
no test coverage detected