Refine queue page polling
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user