Selaa lähdekoodia

Reduce batch size

microtasks
tech234a 3 vuotta sitten
vanhempi
commit
f19588f7f9
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      worker.py

+ 1
- 1
worker.py Näytä tiedosto

@@ -24,7 +24,7 @@ batchcontent = []

def batchfunc():
ydl = YoutubeDL({"extract_flat": "in_playlist", "simulate": True, "skip_download": True, "quiet": True, "cookiefile": "cookies.txt", "source_address": "0.0.0.0", "call_home": False})
while jobs.qsize() < 501:
while jobs.qsize() < 251:
desit = tracker.request_item_from_tracker()
if desit:
if desit.split(":", 1)[0] == "video":


Ladataan…
Peruuta
Tallenna