Skip to content

Commit faee459

Browse files
committed
In the example subjob, print what jobs the user is allowed to show
1 parent 3f1041d commit faee459

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

small-docker/ExampleSubJob/ExampleSubJob.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,13 @@
2626
'Rounds': args.count,
2727
'Sleep': args.sleep
2828
})
29+
print('jobs')
30+
try:
31+
print(len(list(gc.listResource('job'))))
32+
except Exception:
33+
print('Cannot get list of jobs')
34+
print('all jobs')
35+
try:
36+
print(len(list(gc.listResource('job/all'))))
37+
except Exception:
38+
print('Cannot get list of jobs')

0 commit comments

Comments
 (0)