Commit 91679afa authored by Simone Rossi's avatar Simone Rossi

[Add] Add automatic retrive of user id

parent 49c376fb
Pipeline #11173 canceled with stages
in 0 seconds
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment