Make simulation imports background tasks with Worker-owned sources and durable deletion
This commit is contained in:
@@ -288,6 +288,9 @@ class _ReadyProvider:
|
||||
destination.write_bytes(payload)
|
||||
return destination
|
||||
|
||||
def delete_retained_source(self, receipt) -> None:
|
||||
self.deleted_sources = getattr(self, "deleted_sources", []) + [receipt["source_id"]]
|
||||
|
||||
def delete_job(self, job_id: str) -> None:
|
||||
self.deleted.append(job_id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user