fix
This commit is contained in:
parent
2bff8983b5
commit
e0e7564fcc
@ -13,7 +13,7 @@ else:
|
||||
QUEUES_URL = 'http://queues:1239'
|
||||
|
||||
|
||||
executor = ThreadPoolExecutor(max_workers=1)
|
||||
executor = ThreadPoolExecutor(max_workers=4)
|
||||
|
||||
|
||||
class QueuesException(Exception):
|
||||
@ -40,8 +40,8 @@ class TasksHandlerMixin:
|
||||
print(f"Error sending metric: {e}")
|
||||
|
||||
def send_metric(self, start: datetime.datetime, end: datetime.datetime, success: bool):
|
||||
# executor.submit(self._send_metric, start, end, success)
|
||||
self._send_metric(start, end, success)
|
||||
executor.submit(self._send_metric, start, end, success)
|
||||
# self._send_metric(start, end, success)
|
||||
|
||||
def poll(self):
|
||||
while True:
|
||||
|
Loading…
Reference in New Issue
Block a user