Skip to content

Commit c8e84c2

Browse files
committed
fix: running tests
1 parent de58c89 commit c8e84c2

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

ocean_runner/runner.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
override,
1919
)
2020

21-
import aiofiles
2221
from oceanprotocol_job_details import (
2322
EmptyJobDetails,
2423
ParametrizedJobDetails,
@@ -68,8 +67,11 @@ async def default_save(
6867
result: ResultT,
6968
base: Path,
7069
) -> None:
70+
from aiofiles import open
71+
7172
algorithm.logger.info("Saving results using default save")
72-
async with aiofiles.open(base / "result.txt", "w+") as f:
73+
74+
async with open(base / "result.txt", "w+") as f:
7375
await f.write(str(result))
7476

7577

@@ -218,6 +220,8 @@ async def execute(self) -> ResultT | None:
218220
self,
219221
)
220222

223+
self.job_details.paths.outputs.mkdir(exist_ok=True)
224+
221225
await run_in_executor(
222226
self._functions.save,
223227
self,

0 commit comments

Comments
 (0)