Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1/n [vscode & server] Reload Environment when invoking the Run Step
This diff modifies the AIConfig backend server to reload the environment everytime the Run Step is invoked. This will allow api keys that are newly added to be picked up from the aiconfig server. I validated that `load_dotenv` does not add any noticeable latency. ``` import time import dotenv start = time.time() dotenv.load_dotenv() end = time.time() print(end-start) _____ 0.0010402202606201172s ``` Surfaced from #1371, a restart of the server will no longer be required. Ontop of this, we can pass a .env path directly the server initialization, instead of relying on a set of lowest-common-ancestor checks Discussed offline with @saqadri ## Testplan
- Loading branch information