Skip to content
Snippets Groups Projects
Commit a03ccb32 authored by Podosochnyy Maxim's avatar Podosochnyy Maxim
Browse files

Реализация ExtensionService с учётом long polling операций

parent ea8db765
No related branches found
No related tags found
1 merge request!61Реализация ExtensionService с учётом long polling операций
......@@ -121,6 +121,13 @@ class ExtensionService(
now = datetime.datetime.now()
for operation_meta in self.__operations.values():
task_is_not_running = operation_meta.task.done() or operation_meta.task.cancelled()
# Если task фактически не работает то операцию нужно пометить как выполненную. Это может произойти в случае
# неотловленного исключения, например
if task_is_not_running:
operation_meta.was_finished = True
if not operation_meta.was_finished:
continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment