Skip to content

Commit

Permalink
fix: ensure Python prints are immediately flushed
Browse files Browse the repository at this point in the history
  • Loading branch information
ViRb3 committed Jan 3, 2024
1 parent c0e13e1 commit 2b6b24e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ func mainE() error {
for key, val := range secrets.Load().(map[string]string) {
signEnv = append(signEnv, key+"="+val)
}
// Ensure Python prints are immediately flushed
signEnv = append(signEnv, "PYTHONUNBUFFERED=1")
cmd := exec.CommandContext(ctx, filepath.Join(workDir, *entrypoint))
cmd.Dir = workDir
cmd.Env = signEnv
Expand Down

0 comments on commit 2b6b24e

Please sign in to comment.