def create_given_step_implementer( self, step_implementer, step_config={}, step_name='', environment=None, implementer='', workflow_result=None, parent_work_dir_path='', ): config = Config({ Config.CONFIG_KEY: { step_name: [{ 'implementer': implementer, 'config': step_config }] } }) step_config = config.get_step_config(step_name) sub_step_config = step_config.get_sub_step(implementer) if not workflow_result: workflow_result = WorkflowResult() step_implementer = step_implementer( workflow_result=workflow_result, parent_work_dir_path=parent_work_dir_path, config=sub_step_config, environment=environment) return step_implementer
def create_given_step_implementer( self, step_implementer, step_config={}, step_name='', environment=None, implementer='', results_dir_path='', results_file_name='', work_dir_path='', ): config = Config({ Config.CONFIG_KEY: { step_name: [{ 'implementer': implementer, 'config': step_config }] } }) step_config = config.get_step_config(step_name) sub_step_config = step_config.get_sub_step(implementer) step_implementer = step_implementer( results_dir_path=results_dir_path, results_file_name=results_file_name, work_dir_path=work_dir_path, config=sub_step_config, environment=environment) return step_implementer