πŸ’£ Kill Runaway Flows

by Patrick Corgan

Version 2 (October 13, 2023)

Download (130 downloads)

Stop runaway flows before they get out of control!

This flow does not use the "Running" notification; instead it continously monitors how many fibers each running flow has started. When a flow's running fibers reaches a predetermined number (default 23; can be set in 'FIBER_LIMIT' variable in block 41), the watchdog shuts that flow down. The event is logged both in the watchdog flow, and the flow that is stopped.

This flow also includes a whitelist. If you have any flows that are supposed to generate a bunch of fibers, add them to the whitelist and they won't be stopped.

πŸ”Έπ™π™šπ™¦π™ͺπ™žπ™§π™šπ™¨ π™₯π™§π™šπ™’π™žπ™ͺπ™’πŸ”Έ

Thank you for colorful flow logs:
-Ricardo FernΓ‘ndez Serrata and the flow "Error text template" (https://llamalab.com/automate/community/flows/41617), and to EXP's comment on that flow.
-MyNameisBob (Pluto) and the flow "Custom Error message!" (https://llamalab.com/automate/community/flows/45217) for the log messages using zero-length characters.

------------------------------
π˜‰π˜Ί π˜—π˜’π˜΅π˜³π˜ͺ𝘀𝘬 𝘊𝘰𝘳𝘨𝘒𝘯
πŸ› οΈπ•”π• π•žπ•žπ•–π•Ÿπ•₯𝕀 π•’π•Ÿπ•• π•”π•£π•šπ•₯π•šπ•”π•šπ•€π•žπ•€ π•¨π•–π•π•”π• π•žπ•–βš’οΈ
------------------------------

Version 2: Minor cosmetic changes. Shiny flow logs!

Gosha Veselov: I don't know what you mean (my knowledge of the inner workings of Android is limited), but this flow is not meant to stop malicious behavior. I suppose it will if the bad actor is a rank amateur, but it's meant to stop unintentional fiber-generating loops.

Jorge Wetter: Of course the flow could be much shorter. If there are features you don't want (and there is a lot of non-core functionality), it would not be difficult to remove them. As far as using too many blocks to achieve a specific purpose, let me know how I can improve it. Thank you.

3.3 average rating from 6 reviews

5 stars
4
4 stars
0
3 stars
0
2 stars
0
1 star
0
Reports
2

Rate and review within the app in the Community section.