Skip to content

Commit

Permalink
Do not fail the job when submission_environment_dependencies.txt cann…
Browse files Browse the repository at this point in the history
…ot be loaded
  • Loading branch information
liferoad committed Oct 11, 2024
1 parent 826e1ad commit 7823f58
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sdks/python/container/boot.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,12 @@ func launchSDKProcess() error {
fmtErr := fmt.Errorf("failed to retrieve staged files: %v", err)
// Send error message to logging service before returning up the call stack
logger.Errorf(ctx, fmtErr.Error())
return fmtErr
// No need to fail the job if submission_environment_dependencies.txt cannot be loaded
if strings.Contains(fmtErr.Error(), "submission_environment_dependencies.txt") {
logger.Printf(ctx, "Ignore the error when loading submission_environment_dependencies.txt.")
} else {
return fmtErr
}
}

// TODO(herohde): the packages to install should be specified explicitly. It
Expand Down

0 comments on commit 7823f58

Please sign in to comment.