Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pycalibration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
calibration
pycalibration
Commits
e09e68d2
Commit
e09e68d2
authored
5 years ago
by
Steffen Hauf
Browse files
Options
Downloads
Plain Diff
Only authenticate once
See merge request detectors/pycalibration!139
parents
37b5feac
4d4d46c4
No related branches found
No related tags found
1 merge request
!139
Only authenticate once
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
webservice/webservice.py
+1
-3
1 addition, 3 deletions
webservice/webservice.py
with
1 addition
and
3 deletions
webservice/webservice.py
+
1
−
3
View file @
e09e68d2
...
@@ -171,8 +171,8 @@ async def update_job_db(config):
...
@@ -171,8 +171,8 @@ async def update_job_db(config):
"""
"""
logging
.
info
(
"
Starting config db handling
"
)
logging
.
info
(
"
Starting config db handling
"
)
conn
=
await
init_job_db
(
config
)
conn
=
await
init_job_db
(
config
)
mdc
=
await
init_md_client
(
config
)
while
True
:
while
True
:
mdc
=
await
init_md_client
(
config
)
statii
=
await
slurm_status
()
statii
=
await
slurm_status
()
c
=
conn
.
cursor
()
c
=
conn
.
cursor
()
c
.
execute
(
"
SELECT * FROM jobs
"
)
c
.
execute
(
"
SELECT * FROM jobs
"
)
...
@@ -372,8 +372,6 @@ async def server_runner(config, mode):
...
@@ -372,8 +372,6 @@ async def server_runner(config, mode):
await
query_rid
(
job_db
,
socket
,
rid
)
await
query_rid
(
job_db
,
socket
,
rid
)
continue
continue
mdc
=
await
init_md_client
(
config
)
async
def
do_action
(
action
,
payload
):
async
def
do_action
(
action
,
payload
):
in_folder
=
None
in_folder
=
None
out_folder
=
None
out_folder
=
None
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment