Skip to content

Commit

Permalink
Fixed bug in relaunching deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogsilva committed Nov 27, 2024
1 parent 9ff3674 commit 10337ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deployments/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ def handle(self) -> None:
except ValueError:
# prevent infinite loops by ensuring we set the --no-auto-update flag
call_args.append(_DO_NOT_UPDATE_FLAG_NAME)
sys.stdout.flush()
os.execv(sys.executable, call_args)


Expand Down Expand Up @@ -483,7 +484,9 @@ def perform_deployment(
]
if auto_update:
deployment_steps.append(
_RelaunchDeploymentScript(config=configuration, original_call_args=sys.argv)
_RelaunchDeploymentScript(
config=configuration, original_call_args=sys.orig_argv
)
)
deployment_steps.extend(
[
Expand Down

0 comments on commit 10337ac

Please sign in to comment.