Skip to content

Commit

Permalink
fix envrion ref on os in function bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed Oct 26, 2023
1 parent 2019f4c commit bcf2515
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/engine/src/core/tasks/executors/Function.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ def _setup_python_container(self):
value=os.path.join(self.task.container_exec_dir, self.task.entrypoint.lstrip("/"))
)


self._write_entrypoint_file(local_entrypoint_file_path, self.task.code)

# Create requirements file that will be mounted into the functions container
Expand Down
2 changes: 1 addition & 1 deletion src/engine/src/helpers/function_bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


sys.path.append("/mnt/open-workflow-engine/pipeline/task/src/owe_python_sdk")
exec(open(os.envrion.get("_OWE_ENTRYPOINT_FILE_PATH")).read())
exec(open(os.environ.get("_OWE_ENTRYPOINT_FILE_PATH")).read())

0 comments on commit bcf2515

Please sign in to comment.