Skip to content

Commit

Permalink
Hotfix for OPDM slowness
Browse files Browse the repository at this point in the history
  • Loading branch information
VeikoAunapuu authored Oct 24, 2024
1 parent 7b89e35 commit d679d8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions emf/loadflow_tool/model_merger/model_merger.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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})
Expand Down

0 comments on commit d679d8a

Please sign in to comment.