mirror of
https://github.com/Watchful1/PushshiftDumps.git
synced 2025-07-23 14:50:35 -04:00
Force the spawn
This commit is contained in:
parent
e3af835cb2
commit
679728d7d1
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ if __name__ == "__main__":
|
|||
level = int(args.level)
|
||||
log.info(f"Compression level: {level}")
|
||||
|
||||
multiprocessing.set_start_method('spawn')
|
||||
multiprocessing.set_start_method('spawn', force=True)
|
||||
queue = multiprocessing.Manager().Queue()
|
||||
p_lock = multiprocessing.Lock()
|
||||
with multiprocessing.Pool(processes=2, initializer=init, initargs=(p_lock,)) as pool:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue