Concurrent job limit for a specific script?

Product: PowerShell Universal
Version: 3.7.13

Would it make sense to be able to change the number of concurrent jobs on an individual script? For instance we have an offboarding process that ends up calling like 7 other child scripts to perform some actions. During these 7 calls they typically query an AD user and if we have a group of 20+ offboards it causes issues where the domain control drops the queries to AD. If we were to limit the number of concurrent jobs for that parent offboarding process it could scatter them out.

If anyone is interested the errors we get is A connection to the directory on which to process the request was unavailable. This is likely a transient condition.

I didn’t realize this existed… Scripts - PowerShell Universal

Would be nice to have it available in the UI.

1 Like