Skip to content

Commit 9ed6036

Browse files
fix
1 parent a6ae16d commit 9ed6036

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

services/director-v2/src/simcore_service_director_v2/modules/db/repositories/comp_runs_snapshot_tasks.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ class CompRunsSnapshotTasksRepository(BaseRepository):
1818
async def batch_create(
1919
self, *, data: list[dict]
2020
) -> None: # list[CompRunSnapshotTaskAtDBGet]:
21+
if not data:
22+
logger.warning(
23+
"No data provided for batch creation of comp run snapshot tasks"
24+
)
25+
return
26+
2127
async with transaction_context(self.db_engine) as conn:
2228

2329
try:

0 commit comments

Comments
 (0)