Skip to content

Fix PREDIBASE_API_TOKEN env var being thrown away#654

Merged
seph-barker merged 1 commit intomainfrom
joseph/fix_predibase_api_token_regression
Oct 22, 2024
Merged

Fix PREDIBASE_API_TOKEN env var being thrown away#654
seph-barker merged 1 commit intomainfrom
joseph/fix_predibase_api_token_regression

Conversation

@seph-barker
Copy link
Contributor

@seph-barker seph-barker commented Oct 22, 2024

Fixes a regression introduced in #621. The Lorax launcher sets the environment variable PREDIBASE_API_TOKEN from the CLI flag --predibase-api-token. Unfortunately that PR overwrites the env var struct after the PREDIBASE_API_TOKEN has been set. :-(

Two deployments use this argument, 4421 and 4781. The latter uses an image that was build yesterday and so includes this bug, we will need to udpate it once this PR merges. (4421 is using an image that was built before this bug).

@@ -621,6 +611,13 @@ fn shard_manager(
// Copy current process env
let mut envs: Vec<(OsString, OsString)> = env::vars_os().collect();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line was introduced in #621 , which means that the value of envs is overwritten and no longer contains the value of PREDIBASE_API_TOKEN.

@seph-barker seph-barker merged commit 71ca771 into main Oct 22, 2024
@seph-barker seph-barker deleted the joseph/fix_predibase_api_token_regression branch October 22, 2024 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants