by Patrick Corgan
𝘉𝘺 𝘗𝘢𝘵𝘳𝘪𝘤𝘬 𝘊𝘰𝘳𝘨𝘢𝘯
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.
Rate and review within the app in the Community section.