Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
beat.backend.python
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
beat
beat.backend.python
Commits
3ef7d4b4
Commit
3ef7d4b4
authored
Feb 06, 2020
by
Flavio TARSETTI
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '30_fix_wait_method' into 'master'
Fix wait method Closes
#30
See merge request
!67
parents
74ad0985
f0d4a464
Pipeline
#36728
failed with stages
in 90 minutes and 2 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
beat/backend/python/execution/database.py
beat/backend/python/execution/database.py
+6
-1
beat/backend/python/execution/loop.py
beat/backend/python/execution/loop.py
+6
-1
No files found.
beat/backend/python/execution/database.py
View file @
3ef7d4b4
...
...
@@ -223,7 +223,12 @@ class DBExecutor(object):
def
wait
(
self
):
"""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
def
__str__
(
self
):
...
...
beat/backend/python/execution/loop.py
View file @
3ef7d4b4
...
...
@@ -291,7 +291,12 @@ class LoopExecutor(object):
def
wait
(
self
):
"""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
def
close
(
self
):
...
...
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