parallel_square passes CI, where tests run it with an in-process executor that calls the function directly. In production it runs on a real ProcessPoolExecutor, and every run fails before a single value is squared. Worker log (Python 3.12, abbreviated):
ERROR jobs: parallel_square failed
File "process_jobs.py", line 9, in parallel_square
return list(executor.map(square, values))
...
AttributeError: Can't pickle local object 'parallel_square.<locals>.square'