Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nopaque
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SFB 1288 - INF
nopaque
Commits
87b7f07d
Commit
87b7f07d
authored
5 years ago
by
Patrick Jentsch
Browse files
Options
Downloads
Patches
Plain Diff
Fix event loop
parent
4b0ef837
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/corpora/events.py
+1
-1
1 addition, 1 deletion
app/corpora/events.py
with
1 addition
and
1 deletion
app/corpora/events.py
+
1
−
1
View file @
87b7f07d
...
...
@@ -38,7 +38,6 @@ def observe_corpus_analysis_connection(app, corpus_id, session_id):
host
=
'
{}_analysis_container{}
'
.
format
(
corpus
.
creator
.
username
,
corpus
.
id
),
port
=
4877
)
analysis_clients
[
session_id
]
=
analysis_client
analysis_client
.
connect
()
logger
.
warning
(
analysis_client
.
corpus_list_corpora
())
corpus_name
=
'
CORPUS
'
result_subcorpus_name
=
'
Query-results
'
# should be set by the user somehow
query
=
'"
and
"
;
'
...
...
@@ -46,6 +45,7 @@ def observe_corpus_analysis_connection(app, corpus_id, session_id):
logger
.
warning
(
'
Log after create_attribute_strings.
'
)
analysis_client
.
query_subcorpus
(
corpus_name
,
result_subcorpus_name
,
query
)
logger
.
warning
(
'
Log after query_subcorpus.
'
)
analysis_client
.
show_results
(
corpus_name
)
while
session_id
in
connected_sessions
:
logger
.
warning
(
analysis_client
.
ctrl_ping
())
socketio
.
sleep
(
3
)
...
...
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