Skip to content

Commit b907241

Browse files
committed
wip
1 parent 87f8c68 commit b907241

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

python_modules/dagster/dagster/_core/storage/runs/sql_run_storage.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,12 @@ def delete_run(self, run_id: str) -> None:
562562
with self.connect() as conn:
563563
conn.execute(query)
564564

565+
def delete_runs(self, run_ids: Sequence[str]) -> None:
566+
check.list_param(run_ids, "run_ids", of_type=str)
567+
query = db.delete(RunsTable).where(RunsTable.c.run_id.in_(run_ids))
568+
with self.connect() as conn:
569+
conn.execute(query)
570+
565571
def has_job_snapshot(self, job_snapshot_id: str) -> bool:
566572
check.str_param(job_snapshot_id, "job_snapshot_id")
567573
return self._has_snapshot_id(job_snapshot_id)

0 commit comments

Comments
 (0)