Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Jan 20, 2025
1 parent bf0153a commit e670864
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app_runner/src/app_runner/submitter/slurm_submitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def _interpolate_main(self, app_version_yml: str, workunit_definition_yml: str)
)

def _get_main_command(self, workunit_wrapper_data: WorkunitWrapperData) -> str:
app_version_yml = yaml.safe_dump(workunit_wrapper_data.app_version)
workunit_definition_yml = yaml.safe_dump(workunit_wrapper_data.workunit_definition)
app_version_yml = yaml.safe_dump(workunit_wrapper_data.app_version.model_dump(mode="json"))
workunit_definition_yml = yaml.safe_dump(workunit_wrapper_data.workunit_definition.model_dump(mode="json"))
return self._interpolate_main(app_version_yml=app_version_yml, workunit_definition_yml=workunit_definition_yml)

def submit(self, workunit_wrapper_data: WorkunitWrapperData, specific_params: dict[str, str | None]) -> None:
Expand Down

0 comments on commit e670864

Please sign in to comment.