Skip to content

Commit

Permalink
debug entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed Oct 24, 2023
1 parent d672944 commit 008bbc9
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/engine/src/core/tasks/executors/Function.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,19 +238,19 @@ def _setup_python_container(self):

# NOTE Only supporting pip for now
# Requirements file path inside the container
requirements_txt = os.path.join(self.task.container_work_dir, "src", requirements_filename)
requirements_txt = os.path.join(self.task.container_exec_dir, requirements_filename)

# Entrypoint path inside the container
entrypoint_py = os.path.join(self.task.container_work_dir, "src", entrypoint_filename)
entrypoint_py = os.path.join(self.task.container_exec_dir, entrypoint_filename)

# The output file for the install logs inside the container
dot_install = os.path.join(self.task.container_work_dir, "output", ".install")
dot_install = os.path.join(self.task.container_output_dir, ".install")

# stderr path inside the container
stderr = os.path.join(self.task.container_work_dir, "output", STDERR)
stderr = os.path.join(self.task.container_output_dir, STDERR)

# .stdout path inside the container
stdout = os.path.join(self.task.container_work_dir, "output", STDOUT)
stdout = os.path.join(self.task.container_output_dir, STDOUT)

install_cmd = ""
if has_packages:
Expand All @@ -262,7 +262,8 @@ def _setup_python_container(self):
owe_python_sdk_local_path = os.path.join(self.task.work_dir, "src/owe_python_sdk")
shutil.copytree(OWE_PYTHON_SDK_DIR, owe_python_sdk_local_path, dirs_exist_ok=True)

entrypoint_cmd = f"python3 {entrypoint_py} 2> {stderr} 1> {stdout}"
# entrypoint_cmd = f"python3 {entrypoint_py} 2> {stderr} 1> {stdout}"
entrypoint_cmd = f"python3"
args = [f"{install_cmd} {entrypoint_cmd}"]

return ContainerDetails(
Expand Down

0 comments on commit 008bbc9

Please sign in to comment.