I have a SharePoint farm with many site collections. I wish to do some cleanup processing to a subset of those site collections; let's say 10 site collections. The cleanup functionality is exactly the same for each site collection; the only variance is the URL of site collection on which the process should run.
Is there a way to have a timer job which determines the 10 site collection targets and then starts 10 instances of a worker job which actually performs the required cleanup work? Each worker job would run independently and possibly in parallel.
I'm trying to find a way that I can define just one instance of the cleanup processing (an unscheduled timer job) but be able to run it 10 times with varying input parameters (the target site collection URL), hopefully at some level of concurrency. The optimal solution would be 1 timer job that dispatches 10 instances of cleanup timer jobs.