Skip to content

Commit

Permalink
Run it in the main thread instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivaylo Korakov committed Nov 4, 2020
1 parent 4960092 commit b024cbc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions redirectory/runnables/runnable_service.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from abc import ABC
from threading import Thread
from flask import Flask, request, Response

from kubi_ecs_logger import Logger, Severity
Expand Down Expand Up @@ -93,9 +92,7 @@ def _run_production(self, is_worker: bool = False):
if is_worker:
# Start loading hyperscan database from management if it exists
sync = Synchronizer()

sync_thread = Thread(name="sync worker thread", target=sync.worker_sync_files)
sync_thread.start()
sync.worker_sync_files()

service_options = {
"bind": f"{self.host}:{self.port}",
Expand Down

0 comments on commit b024cbc

Please sign in to comment.