From d679d8a785bc90acc734fcae4d59855fc910f36e Mon Sep 17 00:00:00 2001 From: VeikoAunapuu Date: Thu, 24 Oct 2024 14:50:12 +0300 Subject: [PATCH] Hotfix for OPDM slowness --- emf/loadflow_tool/model_merger/model_merger.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/emf/loadflow_tool/model_merger/model_merger.py b/emf/loadflow_tool/model_merger/model_merger.py index a155297..1ae97a0 100644 --- a/emf/loadflow_tool/model_merger/model_merger.py +++ b/emf/loadflow_tool/model_merger/model_merger.py @@ -1,6 +1,7 @@ import logging import config import json +import time from uuid import uuid4 import datetime from emf.task_generator.time_helper import parse_datetime @@ -213,6 +214,7 @@ def handle(self, task_object: dict, **kwargs): try: for item in serialized_data: logger.info(f"Uploading to OPDM: {item.name}") + time.sleep(2) async_call(function=self.opdm_service.publication_request, callback=log_opdm_response, file_path_or_file_object=item) merge_log.update({'uploaded_to_opde': True})