How workflow handle multiple

Post your questions and help other users.

Moderator: Martin

Post Reply
1tamad
Posts: 11
Joined: 20 Apr 2016 03:04

How workflow handle multiple

Post by 1tamad » 28 Jul 2017 09:11

I created a flow where it process incoming mail with specific header. It aend sms to a recipient dependin on the header. Automagic can intercept mail via k-9 mail and the lowest fetch interval is 1min. Although I have not tested it yet, in case it receives more than 1 email in less than a minute and all of them suppose to trigger the same flow. How will Automagic handle it? It will process all of them in sequence? In parallel? Accept the latest and ignore the rest or vice versa? Thanks

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: How workflow handle multiple

Post by Desmanto » 28 Jul 2017 12:43

Automagic has 4 ways to handle the trigger. You can find it at the flow > options. Each has its own usage, by default it is parallel.
1. Parallel : multiple trigger will run on its own flow task
2. skip execution : multiple trigger will miss if previous triggered one still running
3. wait until : Multiple trigger will queue and executed one by one after the running one finish.
4. Stop currently : stop current running and execute new trigger.

Based upon your need to process each mail, most likely you need the 3rd one. Each mail will be processed in queue. You can see how many times it got triggered, based on the number beside the trigger (need to open the flow).
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

1tamad
Posts: 11
Joined: 20 Apr 2016 03:04

Re: How workflow handle multiple

Post by 1tamad » 28 Jul 2017 15:17

Thanks for that response. I will explore those options and get back to you.

Cheers

Post Reply