💣 Kill Runaway Flows

by Patrick Corgan

Version 1 (September 30, 2019)

Download (32 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 10; can be set in fiberLimit 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.

🔸𝙍𝙚𝙦𝙪𝙞𝙧𝙚𝙨 𝙥𝙧𝙚𝙢𝙞𝙪𝙢🔸

⚡𝘊𝘰𝘯𝘴𝘵𝘳𝘶𝘤𝘵𝘪𝘷𝘦 𝘤𝘰𝘮𝘮𝘦𝘯𝘵𝘴 𝘢𝘯𝘥 𝘤𝘳𝘪𝘵𝘪𝘤𝘪𝘴𝘮𝘴 𝘢𝘳𝘦 𝘢𝘭𝘸𝘢𝘺𝘴 𝘸𝘦𝘭𝘤𝘰𝘮𝘦. 𝘛𝘩𝘢𝘯𝘬 𝘺𝘰𝘶!⚡

⚠️ Why the warning ratings? Any feedback is welcome.

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. 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. Regardless, it doesn't rate a warning.

Bird: Why?

2.5 average rating from 4 reviews

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

Reviews and ratings can be submitted in the app.