Page 1 of 1
How workflow handle multiple
Posted: 28 Jul 2017 09:11
by 1tamad
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
Re: How workflow handle multiple
Posted: 28 Jul 2017 12:43
by Desmanto
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).
Re: How workflow handle multiple
Posted: 28 Jul 2017 15:17
by 1tamad
Thanks for that response. I will explore those options and get back to you.
Cheers