conductor-sdk / conductor-python

Conductor OSS SDK for Python programming language
Apache License 2.0
59 stars 30 forks source link

Support for asyncio based workers #167

Open aditya-n-invcr opened 1 year ago

aditya-n-invcr commented 1 year ago

The current worker implementation model uses multiprocessing for parallel execution but each process blocks on task execution (though it might be waiting on I/O). Is there a possibility to use asyncio/threaded approach to alleviate this problem and think of a model where processes could be used for parallelization (using multiple cores) and each process has an event loop/ThreadPool to poll and execute tasks to maximize performance on each core ?

I'd be happy to discuss more on this and submit a PR if required as well. Thanks for all the awesome work so far 👍

v1r3n commented 8 months ago

Hi @aditya-n-invcr happy to discuss this further.