---
title: Restricting Task Execution to a Single Concurrent Job Using MaxJobThreads
slug: restricting-task-execution-to-a-single-concurrent-job-using-maxjobthreads
docTags: 
createdAt: 2026-03-19T02:47:59.444Z
---

## 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&#x20;
- Avoid exceeding concurrent session limits (e.g., PowerShell sessions)&#x20;
- Throttle resource-intensive tasks&#x20;

## Resolution

### Limit Task to Single Execution

Configure the task parameter:

- **Parameter Name:** MaxJobThreads&#x20;
- **Value:** 1&#x20;

This ensures:

- The first submitted job runs immediately&#x20;
- Subsequent jobs are queued and executed sequentially after the previous job completes&#x20;

### Limit to a Specific Concurrency Level

If limited parallelism is acceptable:

- Set MaxJobThreads to a value greater than 1 (e.g., 2, 3, etc.)&#x20;

This allows multiple jobs to run concurrently up to the defined limit, helping manage resource utilization.

## Important Notes

- The correct parameter name is **MaxJobThreads**&#x20;
- Parameters such as **MaxJobs** are incorrect and will not enforce concurrency limits as intended&#x20;
- Queued jobs will execute in order as threads become available
