Open MenachemBerkovich opened 1 year ago
@MenachemBerkovich you might have a look at the AppHarness
i added for integration testing of reflex apps: https://github.com/reflex-dev/reflex/blob/919f239168d789056dfca6c67a500637f3f0ab8e/reflex/testing.py#L143
i don't know if it quite does what you want, but it supports calling init and starting the backend server inside the same process programmatically. (The frontend is a nodejs process, so it has to be a subprocess)
At any rate, it might inspire an idea of what is possible.
Programmatic invocation is something we're trying to work out to enable better debuggability of reflex apps.
Thanks @masenf, And for 'reflex run'? Is there an accesible method?
I need to boot the app and other system concurency, and link them by multiprocessing.Manager().Queue().
So my question is if there is a way to do this - running 'pc init' as part of my main module, and passing the shared queue as an argument.
Specifics (please complete the following information):
Thank you!