Replies: 3 comments 3 replies
-
Can you provide a bit more context on the error you're seeing? If I understand correctly you're not trying to use any coroutines directly within an adapter, but there is some weird behavior due to an async call coming from the NATS library. It would be super helpful if you could provide a small code snippet which reproduces the issue. |
Beta Was this translation helpful? Give feedback.
-
@kootsZhin as Adam said, some more context would help here. Without more context, I do think you should be able to use asyncio on your adapter thread. This would be for realtime data only, so your adapter would need to manage its own thread for the async data. That processing on that thread can do whatever you want, and can use asyncio as needed |
Beta Was this translation helpful? Give feedback.
-
output adapters are not async aware. You cant really mix asyncio with the main csp engine thread since the thread is driven directly by the engine ( which doesnt manage any asyncio at the moment ) |
Beta Was this translation helpful? Give feedback.
-
I am trying to implement IPC for multiple CSP processes running on the same machine using NATS, which turns out to require using asyncio in python
I tried playing with it in CSP but it seems that it is not working with adapters?
If so, alternatively, is there any recommendation on IPC for CSP processes? (I saw
csp.gateway
on the roadmap but looking for some immediate solutions for now)Thank you so much!
Beta Was this translation helpful? Give feedback.
All reactions