Inside Activate
Jobs and Tasks
Restricting Task Execution to a Single Concurrent Job Using MaxJobThreads
4 min
overview control concurrent execution of a task to ensure it runs only once at a time or within a defined concurrency limit use cases prevent simultaneous file exports that could overwrite or corrupt output avoid exceeding concurrent session limits (e g , powershell sessions) throttle resource intensive tasks resolution limit task to single execution configure the task parameter parameter name maxjobthreads value 1 this ensures the first submitted job runs immediately subsequent jobs are queued and executed sequentially after the previous job completes limit to a specific concurrency level if limited parallelism is acceptable set maxjobthreads to a value greater than 1 (e g , 2, 3, etc ) this allows multiple jobs to run concurrently up to the defined limit, helping manage resource utilization important notes the correct parameter name is maxjobthreads parameters such as maxjobs are incorrect and will not enforce concurrency limits as intended queued jobs will execute in order as threads become available