File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -125,12 +125,12 @@ def get_pending_task_result(self, id):
125125 if result is not None :
126126 self .results = [item for item in self .results if item ['id' ] != id ]
127127 return result ['result' ]
128- print (f"\n called id = { id } -----" )
128+ # print(f"\ncalled id = {id}-----")
129129 if not self .running and len (self .tasks ) > 0 :
130130 try :
131131 self .running = True
132132 task = self .tasks [0 ]
133- print (f"run started = { task ['id' ]} " )
133+ print (f"{ task ['id' ]} started, queue= { len ( self . tasks ) } " )
134134 self .tasks .remove (task )
135135 response = self .asyncio_loop .run_until_complete (task ['coro' ])
136136 print (f"{ task ['id' ]} complete" )
@@ -140,7 +140,6 @@ def get_pending_task_result(self, id):
140140 else :
141141 self .results .append ({"id" : task ['id' ], "result" : response .result ()})
142142 except Exception as e :
143- task ['run' ] = False
144143 print (f"{ task ['id' ]} , { e } " )
145144 return None
146145
You can’t perform that action at this time.
0 commit comments