Re: How do I ensure fiber does not stop on error?

235 views
Skip to first unread message
Message has been deleted

Henrik "The Developer" Lindqvist

unread,
Mar 7, 2024, 9:08:46 AM3/7/24
to Automate for Android
Place a Failure catch block before the HTTP request block.

On Thursday, March 7, 2024 at 2:38:42 PM UTC+1 Aurorum wrote:
94D07835-C6CD-42FB-B244-CFAED4EC1315.jpegI have a very simple flow - when I receive a notification (from WhatsApp), I send a HTTP request. This works fine, but occasionally, there’s an error like this: android.system.gaiexception android_getaddrinfo failed eai_nodata

This is fine, except that it stops the fiber and I need to manually restart it. How do I automatically make it restart?

Thank you.

phonetus tus

unread,
Mar 8, 2024, 7:17:43 PM3/8/24
to Automate for Android
1. It is possible to only fork once? Just like in Flow Beginning Blocks "allow parallel launches".
I experienced a duplicate fork "sometimes", I checked the flow, I can't find the reason.
2. Is there a block or function that checked the "number of fork running"? Just like the [STOP (4)], I want the (4) to show in notification.
3. How to search the example flow of "The Developer" in the community? Can I search "Henrik "The Developer" Lindqvist" & subscribe? 

Henrik "The Developer" Lindqvist

unread,
Mar 9, 2024, 6:37:24 AM3/9/24
to Automate for Android
  1. There's no built-in way, but easily done using a Fiber stopped block to check if a prior Fiber URI is still running running.
  2. No. Such a number would be useless for anything but display purposes since it could be out of date, since new Fibers could be started, at any time.
  3. It's currently not possible to search by author. If you find a flow by the user then click the "More by <name>" to all their uploads, e.g. for my flow first search for "App start inspect": https://llamalab.com/automate/community/?q=app+start+inspect

phonetus tus

unread,
Mar 16, 2024, 9:13:13 AM3/16/24
to Automate for Android
1. Thanks, I didn't realized that it could be done that way. Thanks again.
2. That number is not useless it is a very important part of the automation & monitoring. Scenario: you made a flow with fork & tested it many times & decided to finalize it & run it in the background, many days pass by & you notice its not working well & the data gathered are incorrect, when you open the flow list you noticed [ STOP (12) ], you only expect (2). Maybe it's hard to do it, just forget it.

Henrik "The Developer" Lindqvist

unread,
Mar 17, 2024, 1:50:13 PM3/17/24
to Automate for Android
2. Try using the the Content query block with Content URI=Flow URI and Columns=fiber_count

phonetus tus

unread,
Mar 20, 2024, 5:49:35 PM3/20/24
to Automate for Android
2. Thank you it works.  Is there a block that detect the change in fiber_count? I try the Content Changed block, it"s not working for me or I don't know how to use it.

Henrik "The Developer" Lindqvist

unread,
Mar 21, 2024, 8:14:17 AM3/21/24
to Automate for Android
No.
Reply all
Reply to author
Forward
0 new messages