diff --git a/src/dcef/backend/fastapi/prod.py b/src/dcef/backend/fastapi/prod.py index fa3690c..e148ffb 100644 --- a/src/dcef/backend/fastapi/prod.py +++ b/src/dcef/backend/fastapi/prod.py @@ -4,4 +4,4 @@ import multiprocessing if __name__ == "__main__": multiprocessing.freeze_support() # for windows https://stackoverflow.com/a/67590514 - uvicorn.run("src.main:app", host="0.0.0.0", port=58000, reload=False, workers=4) \ No newline at end of file + uvicorn.run("src.main:app", host="0.0.0.0", port=58000, reload=False, workers=1, loop="asyncio") \ No newline at end of file diff --git a/src/dcef/backend/preprocess/JsonProcessor.py b/src/dcef/backend/preprocess/JsonProcessor.py index 7899ca3..4732f78 100644 --- a/src/dcef/backend/preprocess/JsonProcessor.py +++ b/src/dcef/backend/preprocess/JsonProcessor.py @@ -404,7 +404,11 @@ class JsonProcessor: json_path_with_base_dir = self.file_finder.add_base_directory(json_path) # get file size - file_size = os.path.getsize(json_path_with_base_dir) + try: + file_size = os.path.getsize(json_path_with_base_dir) + except FileNotFoundError: + print(f' ERROR: FileNotFoundError - path is probably longer than 260 chars') + file_size = 0 # get date modified date_modified = os.path.getmtime(json_path_with_base_dir) diff --git a/src/dcef/backend/preprocess/__init__.py b/src/dcef/backend/preprocess/__init__.py deleted file mode 100644 index e69de29..0000000