MCPcopy Create free account
hub / github.com/fogleman/primitive / process

Function process

scripts/process.py:43–60  ·  view source on GitHub ↗
(in_folder, out_folder, nlist, alist, mlist, nworkers)

Source from the content-addressed store, hash-verified

41 done.put(True)
42
43def process(in_folder, out_folder, nlist, alist, mlist, nworkers):
44 jobs = Queue()
45 done = Queue()
46 for i in xrange(nworkers):
47 t = threading.Thread(target=worker, args=(jobs, done))
48 t.setDaemon(True)
49 t.start()
50 count = 0
51 items = []
52 for n, a, m in itertools.product(nlist, alist, mlist):
53 for item in create_jobs(in_folder, out_folder, n, a, m):
54 items.append(item)
55 items.sort()
56 for _, job in items:
57 jobs.put(job)
58 count += 1
59 for i in xrange(count):
60 done.get()
61
62log_lock = threading.Lock()
63

Callers 1

process.pyFile · 0.85

Calls 1

create_jobsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…