Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fractalis
fractalis
Commits
a91d1990
Commit
a91d1990
authored
Oct 26, 2017
by
Sascha Herzinger
Browse files
Fixed two tests
parent
bee67fc8
Pipeline
#2496
passed with stage
in 15 minutes and 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
fractalis/data/controller.py
View file @
a91d1990
...
...
@@ -107,7 +107,7 @@ def delete_data(task_id: str) -> Tuple[Response, int]:
session
[
'data_tasks'
].
remove
(
task_id
)
# possibly dangerous: http://stackoverflow.com/a/29627549
celery
.
control
.
revoke
(
task_id
,
terminate
=
True
,
signal
=
'SIGUSR1'
,
wait
=
wait
)
remove_data
(
task_id
=
task_id
,
wait
=
wait
)
remove_data
(
task_id
=
task_id
)
logger
.
debug
(
"Successfully removed data from session. Sending response."
)
return
jsonify
(
''
),
200
...
...
@@ -120,7 +120,7 @@ def delete_all_data() -> Tuple[Response, int]:
logger
.
debug
(
"Received DELETE request on /data."
)
wait
=
request
.
args
.
get
(
'wait'
)
==
'1'
for
task_id
in
session
[
'data_tasks'
]:
remove_data
(
task_id
=
task_id
,
wait
=
wait
)
remove_data
(
task_id
=
task_id
)
# possibly dangerous: http://stackoverflow.com/a/29627549
celery
.
control
.
revoke
(
task_id
,
terminate
=
True
,
signal
=
'SIGUSR1'
,
wait
=
wait
)
...
...
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