With Orion will we have the option to say we want this flow to run all the time ? The idea would be for that one to listen to event and start other child flow. However this flow will be in a continuous loop.The main question will be how do you release a new version cleanly as the current event loop will need to be stopped and a new instance starter
z
Zanie
02/04/2022, 4:22 AM
Hey 🙂 that sounds like a tricky use-case with any Python application. I feel we can probably do a better job for triggering flows based on events.
d
davzucky
02/04/2022, 4:46 AM
I would like to get a better solution for sure...
Happy to talk with you for more requirement on that side...
I know this hard to handle. And developing something async at the moment I decided on the pattern of actors and have some custom message to stop the agent and the eventloop associated
z
Zanie
02/04/2022, 4:49 AM
It sounds like you want a service that runs every N seconds that pulls code from some location and runs it. This code then checks for an event, which, if set, runs a flow.
d
davzucky
02/04/2022, 4:57 AM
That could work. However I'm think at service like S3 which can callback when a new file arrive. This would need to keep listing. Boto3 allow that already. My idea was to have an infinite loop for new file and in function of it do something
This pattern could be the same for message queue for example.
I know S3 can push to a message queue however we are using minio and don't have that capability it of the box. Think of alternative