File tree 2 files changed +3
-2
lines changed
backend_py/primary/primary/services/sumo_access
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ def create_sumo_client(access_token: str) -> SumoClient:
41
41
sumo_client = SumoClient (
42
42
env = config .SUMO_ENV ,
43
43
token = access_token ,
44
- http_client = FakeHTTPXClient (),
44
+ http_client = None , # Until we update fmu-sumo > 2.0 we need to initialize a sync client.
45
45
async_http_client = httpx_async_client .client ,
46
46
)
47
47
timer .record_lap ("create_sumo_client()" )
Original file line number Diff line number Diff line change @@ -40,7 +40,8 @@ async def get_case_name_async(self) -> str:
40
40
async def get_iterations_async (self ) -> list [IterationInfo ]:
41
41
case : Case = await self ._get_or_create_case_obj ()
42
42
43
- iterations = await case .iterations_async
43
+ # Until we update fmu-sumo > 2.0 we need to fetch iterations synchronously.
44
+ iterations = case .iterations
44
45
45
46
iter_info_arr : list [IterationInfo ] = []
46
47
for iteration in iterations :
You can’t perform that action at this time.
0 commit comments