Refine queue page polling

This commit is contained in:
Dymas
2026-05-24 11:47:38 +02:00
parent 93446c5e92
commit 643408b19d
8 changed files with 170 additions and 60 deletions
+4
View File
@@ -798,6 +798,10 @@ class DownloadQueue:
"pages": pages,
}
def get(self, job_id):
with self.lock:
return self._find(job_id)
def add(self, payload):
job = build_job(payload, self.config_getter())
if self.job_prepare_fn is not None: