Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Simone Rossi
main
Commits
91679afa
Commit
91679afa
authored
Dec 06, 2018
by
Simone Rossi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Add] Add automatic retrive of user id
parent
49c376fb
Pipeline
#11173
canceled with stages
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
scripts/grid_queue.py
scripts/grid_queue.py
+2
-1
No files found.
scripts/grid_queue.py
View file @
91679afa
...
...
@@ -243,6 +243,7 @@ def main():
# Connect to zoe API
api
=
ZoeAPI
(
auth
[
'url'
],
auth
[
'user'
],
auth
[
'pass'
])
# Parse the application description (json file)
with
open
(
args
.
appfile
)
as
data_file
:
zapp
=
json
.
load
(
data_file
)
...
...
@@ -257,7 +258,7 @@ def main():
grid
=
json
.
load
(
data_file
)
list_of_jobs
=
get_all_jobs
(
grid
[
'bin'
],
grid
[
'executable'
],
grid
[
'hyperparameters'
])
user_id
=
13
# TODO: get this from somewhere
user_id
=
api
.
auth_user
[
'id'
]
# Get user quota (this is supposed to be fixed during an experiment - if not: move this in the next loop)
quota_jobs
,
quota_cores
,
quota_memory
=
get_user_quota
(
api
,
user_id
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment