clean: remove unused lock
This commit is contained in:
parent
ee93a5b209
commit
45437660ba
@ -44,7 +44,7 @@ from . import environment
|
|||||||
|
|
||||||
|
|
||||||
DEPENDENCIES = {
|
DEPENDENCIES = {
|
||||||
("replication", '0.1.6'),
|
("replication", '0.2.0'),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -699,12 +699,10 @@ def sanitize_deps_graph(dummy):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
if session and session.state['STATE'] == STATE_ACTIVE:
|
if session and session.state['STATE'] == STATE_ACTIVE:
|
||||||
session.lock()
|
|
||||||
for node_key in session.list():
|
for node_key in session.list():
|
||||||
node = session.get(node_key)
|
node = session.get(node_key)
|
||||||
if node and not node.resolve(construct=False):
|
if node and not node.resolve(construct=False):
|
||||||
session.remove(node_key)
|
session.remove(node_key)
|
||||||
session.unlock()
|
|
||||||
|
|
||||||
@persistent
|
@persistent
|
||||||
def load_pre_handler(dummy):
|
def load_pre_handler(dummy):
|
||||||
|
Loading…
Reference in New Issue
Block a user