Multiprocessing with pykx hanging on trying to load db from disk

https://learninghub.kx.com/forums/topic/multiprocessing-kdb

Hi,

I'm starting up a new process using multiprocess in python, where I feed in multithreading.queue into a custom function


 p = multithreading.Process(target=function, args=(queue,))

 p.start()


However, in my function in the new process, I try to load a db using

pykx.DB(path="/home/user/test")


and this query hangs.  I can run other simple queries, but it seems the call to system loading a path doesn't work.


Is there something preventing pykx from using system functions in a separate process?  If it matters i'm using pykx 2.5.2 (with beta features enabled).  If I try this in the main process it works fine.

What OS are you using?

PyKX does not support multiprocessing on Windows.


See also: Multithreaded Execution - PyKX

linux (centos)


The link you provided is about multithreading?  Not multiprocessing?