end current import task
This commit is contained in:
parent
b5be527aca
commit
27908619ef
1 changed files with 2 additions and 0 deletions
|
@ -215,6 +215,8 @@ def run_import(options=None):
|
||||||
if state.activity.get('cancel'):
|
if state.activity.get('cancel'):
|
||||||
state.activity = {}
|
state.activity = {}
|
||||||
return
|
return
|
||||||
|
if not state.tasks.connected:
|
||||||
|
return
|
||||||
with db.session():
|
with db.session():
|
||||||
if listname and listitems:
|
if listname and listitems:
|
||||||
l = List.get(settings.USER_ID, listname)
|
l = List.get(settings.USER_ID, listname)
|
||||||
|
|
Loading…
Reference in a new issue