Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
neoppod
Commits
93f5b0d8
Commit
93f5b0d8
authored
Nov 13, 2015
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
threaded: expose a method to stop a A/M/S node
parent
e57b1bdd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
neo/tests/threaded/__init__.py
neo/tests/threaded/__init__.py
+4
-1
No files found.
neo/tests/threaded/__init__.py
View file @
93f5b0d8
...
...
@@ -329,6 +329,9 @@ class ServerNode(Node):
except
AttributeError
:
raise
ConnectorException
def
stop
(
self
):
self
.
em
.
wakeup
(
True
)
class
AdminApplication
(
ServerNode
,
neo
.
admin
.
app
.
Application
):
pass
...
...
@@ -711,7 +714,7 @@ class NEOCluster(object):
client
is
None
or
self
.
__dict__
.
pop
(
"db"
,
client
).
close
()
node_list
=
self
.
admin_list
+
self
.
storage_list
+
self
.
master_list
for
node
in
node_list
:
node
.
em
.
wakeup
(
True
)
node
.
stop
(
)
try
:
node_list
.
append
(
client
.
poll_thread
)
except
AttributeError
:
# client is None or thread is already stopped
...
...
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