Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
D-GENIES
Commits
165261ea
Commit
165261ea
authored
Feb 23, 2018
by
Floreal Cabanettes
Browse files
Increase time before delete active session
parent
1aa3dbe3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dgenies/bin/local_scheduler.py
View file @
165261ea
...
...
@@ -167,7 +167,7 @@ def parse_uploads_asks():
nb_active_dl
=
len
(
sessions
)
_printer
(
"Active_dl:"
,
nb_active_dl
)
for
session
in
sessions
:
if
not
session
.
keep_active
and
(
now
-
session
.
last_ping
).
total_seconds
()
>
3
0
:
if
not
session
.
keep_active
and
(
now
-
session
.
last_ping
).
total_seconds
()
>
5
0
:
_printer
(
"Delete 1 active session:"
,
session
.
s_id
)
session
.
delete_instance
()
# We consider the user has left
nb_active_dl
-=
1
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment