bug fixes
This commit is contained in:
parent
a71c15fe6c
commit
4293c79e63
2
main.py
2
main.py
@ -4,7 +4,7 @@ import threading
|
||||
from src.api.api_main import start_api_server
|
||||
from src.backend.backend_main import start_backend_process
|
||||
import config as config
|
||||
from flags import set_run_start
|
||||
from src.flags import set_run_start
|
||||
|
||||
DELAY_API_SERVER_START = 60 # 1 min
|
||||
|
||||
|
||||
@ -589,6 +589,7 @@ def processBlocksInBatch(startIndex, stopIndex, batchsize = BLOCK_SYNC_BATCHSIZE
|
||||
for j in range(batchsize):
|
||||
if (i_index <= stopIndex) and (i_index not in IGNORE_BLOCK_LIST):
|
||||
threads[j] = threading.Thread(target=fetchDataAndStore, args=(i_index, j))
|
||||
threads[j].start()
|
||||
i_index += 1 # increment blockindex
|
||||
|
||||
# wait for all threads in the batch to complete
|
||||
|
||||
Loading…
Reference in New Issue
Block a user