Skip to content

Commit

Permalink
Merge branch 'feature/v0.4.7' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
KelSolaar committed Dec 23, 2024
2 parents ecc96b8 + 7781301 commit 9b62207
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion colour/utilities/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
from __future__ import annotations

import concurrent.futures
import multiprocessing
import os
import threading
import typing
Expand Down Expand Up @@ -2304,8 +2305,9 @@ def process(self) -> None:
self.log(f'Processing "{node}" node...')

results = {}
context = multiprocessing.get_context("spawn")
with concurrent.futures.ProcessPoolExecutor(
max_workers=self.get_input("processes")
mp_context=context, max_workers=self.get_input("processes")
) as executor:
futures = [
executor.submit(self.get_input("task"), (i, element, node, self))
Expand Down

0 comments on commit 9b62207

Please sign in to comment.