Untitled
unknown
plain_text
2 years ago
1.0 kB
15
Indexable
I have this code
class PerfWorkflowRunner:
def __init__(self, perf_workflow_config: PerfWorkflowConfig, test_id: str):
self.__parent_workflow_id = None
self.pwc = perf_workflow_config
self.pwc.test_id = test_id
self.test_id = perf_workflow_config.test_id
self.result_db: ResultDbHandler = get_result_db_handler()
self.rdsbms_manager: BMSWorkflowManager = get_rdsbms_workflow_manager()
self.rdsbms_params_dict = self.pwc.rdsbms_params_dict
self.workflow_resource_retention_time = self.pwc.workflow_resource_retention_time
@property
def parent_workflow_id(self):
if not self.__parent_workflow_id:
ValueError("ERROR: cannot start the workflow, parent workflow id does not exit")
return self.__parent_workflow_id
def get_rdsbms_params_dict(self):
return self.rdsbms_params_dict
In my another python file I just want to use the value obtained from this
def get_rdsbms_params_dict(self):
return self.rdsbms_params_dict
Editor is loading...
Leave a Comment