This was causing a check for each set of dead tasks
Eg. 0.0.0.0 for blocked domains
Because I use a custom DNS server, Domain based routing rules don't work. This instead resolves the domains and then adds the IP addresses to the rules.