[issue39257] contextvars.Context.run hangs forever in ProccessPoolExecutor

2020-01-10 Thread Yury Selivanov
Yury Selivanov added the comment: > This throws 'cannot pickle Context' Yes, this is expected. contextvars are not compatible with multiprocessing. > This hangs forever * This hanging part is weird, and most likely hints at a bug in multiprocessing. --

[issue39257] contextvars.Context.run hangs forever in ProccessPoolExecutor

2020-01-10 Thread Andrew Svetlov
Change by Andrew Svetlov : -- Removed message: https://bugs.python.org/msg359576 ___ Python tracker ___ ___ Python-bugs-list

[issue39257] contextvars.Context.run hangs forever in ProccessPoolExecutor

2020-01-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39257] contextvars.Context.run hangs forever in ProccessPoolExecutor

2020-01-08 Thread Ron Serruya
Ron Serruya added the comment: Sending Context.run to another process via ProccessPoolExecutor hangs forever: ``` from contextvars import ContextVar, copy_context from concurrent.futures import ProcessPoolExecutor from multiprocessing import Process var: ContextVar[int] =

[issue39257] contextvars.Context.run hangs forever in ProccessPoolExecutor

2020-01-08 Thread Ron Serruya
New submission from Ron Serruya : Sending Context.run to another process via ProccessPoolExecutor hangs forever: ``` from contextvars import ContextVar, copy_context from concurrent.futures import ProcessPoolExecutor from multiprocessing import Process var: ContextVar[int] =