guard on deleting secrets from env (#2653) [skip ci]
This commit is contained in:
@@ -57,7 +57,9 @@ async def handler(job):
|
|||||||
logger.info("Training Complete.")
|
logger.info("Training Complete.")
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
|
if "WANDB_API_KEY" in os.environ:
|
||||||
del os.environ["WANDB_API_KEY"]
|
del os.environ["WANDB_API_KEY"]
|
||||||
|
if "HF_TOKEN" in os.environ:
|
||||||
del os.environ["HF_TOKEN"]
|
del os.environ["HF_TOKEN"]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user