Skip to content

Commit 7308f12

Browse files
committed
Add comments
1 parent 3fc9674 commit 7308f12

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

files/scripts/workspaces_launch_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@ def start_workspace_launch_test(self):
128128

129129

130130
def monitor_workspace_status(self, interval=10):
131+
"""
132+
In an interval of given time (in seconds) hit the workspace status endpoint to monitor the status of the workspace
133+
134+
Args:
135+
interval (int, optional): Interval (in seconds) to hit the options endpoint. Defaults to 10 seconds.
136+
"""
131137
status_url = self.commons_url + "/lw-workspace/status"
132138

133139
while True:

kube/services/jobs/workspace-launch-test-cronjob.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# To run: gen3 job run workspace-launch-test-cronjob COMMONS_URL <commons base url> NOTEBOOK <NOTEBOOK name>
2+
# example: gen3 job run workspace-launch-test-cronjob COMMONS_URL https://qa-heal.planx-pla.net NOTEBOOK '(Generic) Jupyter Lab Notebook with R Kernel'
3+
# If NOTEBOOK isn't provided, it defaults to '(Generic) Jupyter Lab Notebook with R Kernel'
4+
15
apiVersion: batch/v1
26
kind: CronJob
37
metadata:

kube/services/jobs/workspace-launch-test-job.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# To run: gen3 job run workspace-launch-test COMMONS_URL <commons base url> NOTEBOOK <NOTEBOOK name>
2+
# example: gen3 job run workspace-launch-test COMMONS_URL https://qa-heal.planx-pla.net NOTEBOOK '(Generic) Jupyter Lab Notebook with R Kernel'
3+
# If NOTEBOOK isn't provided, it defaults to '(Generic) Jupyter Lab Notebook with R Kernel'
4+
15
apiVersion: batch/v1
26
kind: Job
37
metadata:

0 commit comments

Comments
 (0)