Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beat.backend.python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
beat
beat.backend.python
Commits
3ef7d4b4
Commit
3ef7d4b4
authored
5 years ago
by
Flavio TARSETTI
Browse files
Options
Downloads
Plain Diff
Merge branch '30_fix_wait_method' into 'master'
Fix wait method Closes
#30
See merge request
!67
parents
74ad0985
f0d4a464
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!67
Fix wait method
Pipeline
#36728
failed
5 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
beat/backend/python/execution/database.py
+6
-1
6 additions, 1 deletion
beat/backend/python/execution/database.py
beat/backend/python/execution/loop.py
+6
-1
6 additions, 1 deletion
beat/backend/python/execution/loop.py
with
12 additions
and
2 deletions
beat/backend/python/execution/database.py
+
6
−
1
View file @
3ef7d4b4
...
@@ -223,7 +223,12 @@ class DBExecutor(object):
...
@@ -223,7 +223,12 @@ class DBExecutor(object):
def
wait
(
self
):
def
wait
(
self
):
"""
Wait for the message handle to finish
"""
"""
Wait for the message handle to finish
"""
self
.
message_handler
.
join
()
try
:
self
.
message_handler
.
join
()
except
RuntimeError
:
# tried to join the handler before it has started.
pass
self
.
message_handler
=
None
self
.
message_handler
=
None
def
__str__
(
self
):
def
__str__
(
self
):
...
...
This diff is collapsed.
Click to expand it.
beat/backend/python/execution/loop.py
+
6
−
1
View file @
3ef7d4b4
...
@@ -291,7 +291,12 @@ class LoopExecutor(object):
...
@@ -291,7 +291,12 @@ class LoopExecutor(object):
def
wait
(
self
):
def
wait
(
self
):
"""
Wait for the message handle to finish
"""
"""
Wait for the message handle to finish
"""
self
.
message_handler
.
join
()
try
:
self
.
message_handler
.
join
()
except
RuntimeError
:
# tried to join the handler before it has started.
pass
self
.
message_handler
=
None
self
.
message_handler
=
None
def
close
(
self
):
def
close
(
self
):
...
...
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