Hello, is there a way to get a message inserted in...
# ask-community
j
Hello, is there a way to get a message inserted into a queue upon the
flow run's success or failure
, without using a task? Using a task is susceptible to infra issues (pre-emptible cloud compute nodes, etc) and hence will miss firing. Not sure if there’ a way to configure each flow to send a status into a AWS-SQS or GCS-PubSub? Or if not, have an HTTP api to poll for status for all of the flows in a tenant account? Thanks!
1
a
What is your end goal of sending that to SQS?
Without revealing too much of the product roadmap, there will be a way to take some action any time something in your orchestration happens, e.g. when the run reaches the Completed state. In fact, the Notifications feature that sends Slack or email notifications on a flow run change state event does exactly that. Adding SQS as an example action would definitely be possible, but I would be curious to hear about your application of it.
j
Thanks @Anna Geller - so long story short, the use case would be, we have multiple flows that needs to run sequentially. Currently, they are running as cron, and as you can see, it’s very inefficient. If we can get an event on the completion of flow #1, we can immediately trigger flow #2.
a
try concurrency limits for that use case
j
Just to clarify Anna, flow #1 is distinct from flow #2 (completely different flow)…. ie. flow #2 is dependent on #1 to finish first.
a
for that you can use subflows or the orchestrator pattern - check Discourse and docs, there are several examples there
1