I’m looking for a way to run the tasks that inside the block by node by node but in other hand I need to send email once in the beginning and end of the activity - after all nodes were reboot
in my code example email was sent for each node the tasks are exec
serial might not be the best option for your case. I’d consider using throttle, and consider using free strategy, so each server which reboots are checked immediately.
I’d use the throttle on the block level.
I wrote this some time back, which might be relevant to what you’re looking for.
Come to think of it, the reason you’re trying to throttle is to manage each reboot and check individually, rt?.. actually free strategy will allow you to do that, in a parallel queue. If I may be presumptuous, free strategy might be the thing you’re after in your case :).