Skip to content

Commit

Permalink
Jobs: Use new "environment_name" config var to set the name of the en…
Browse files Browse the repository at this point in the history
…vironment name to spawn. Allows us to create two "different" available job types that are of the same "job_type" class.
  • Loading branch information
Juan Puerto committed Feb 13, 2024
1 parent 6a977d8 commit 9d80438
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/example_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"python_version": "python3.8",
"module_manager": "virtualenv",
"modules": ["jupyterlab"],
"time_limit": "60"
"time_limit": "60",
"environment_name": "JupyterLabJob"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
VENV_PATH="{{ workspace_full_path }}/.JupyterLabJob_venv"
VENV_PATH="{{ workspace_full_path }}/{{ environment_name }}_venv"

echo $(date)
### Environment initialization
Expand Down

0 comments on commit 9d80438

Please sign in to comment.