<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to limit max concurrent tasks runs in a job? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-limit-max-concurrent-tasks-runs-in-a-job/m-p/156135#M54364</link>
    <description>&lt;P&gt;I read somewhere that there's a&amp;nbsp;max_concurrent_task_runs property, but can't find it anywhere in the docs. So, how to limit the maximum concurrent tasks run in a job?&lt;/P&gt;</description>
    <pubDate>Tue, 05 May 2026 06:51:32 GMT</pubDate>
    <dc:creator>yit337</dc:creator>
    <dc:date>2026-05-05T06:51:32Z</dc:date>
    <item>
      <title>How to limit max concurrent tasks runs in a job?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-limit-max-concurrent-tasks-runs-in-a-job/m-p/156135#M54364</link>
      <description>&lt;P&gt;I read somewhere that there's a&amp;nbsp;max_concurrent_task_runs property, but can't find it anywhere in the docs. So, how to limit the maximum concurrent tasks run in a job?&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2026 06:51:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-limit-max-concurrent-tasks-runs-in-a-job/m-p/156135#M54364</guid>
      <dc:creator>yit337</dc:creator>
      <dc:date>2026-05-05T06:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to limit max concurrent tasks runs in a job?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-limit-max-concurrent-tasks-runs-in-a-job/m-p/156143#M54368</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/210475"&gt;@yit337&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;I don't think there is a&amp;nbsp;job level max_concurrent_task_runs setting for normal DAG tasks.&lt;/P&gt;&lt;P&gt;But there are 2 different concepts:&lt;/P&gt;&lt;P&gt;1. you can limit concurrent runs of the same job&lt;/P&gt;&lt;PRE&gt;resources:
  jobs:
    my_job:
      name: my_job
      max_concurrent_runs: 1&lt;/PRE&gt;&lt;P&gt;here you can limit how many runs of the same job can overlap. It does not limit how many tasks run in parallel inside one job run. &lt;A title="https://docs.databricks.com/aws/en/jobs/configure-job" href="https://docs.databricks.com/aws/en/jobs/configure-job" target="_self"&gt;https://docs.databricks.com/aws/en/jobs/configure-job&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2. you can limit parallel iterations of a repeated task and&amp;nbsp;use a For each task and set concurrency:&lt;/P&gt;&lt;PRE&gt;tasks:
  - task_key: process_items
    for_each_task:
      inputs: '["A", "B", "C", "D"]'
      concurrency: 2
      task:
        task_key: process_one_item
        notebook_task:
          notebook_path: ../src/process_one_item.py&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;A title="https://docs.databricks.com/aws/en/dev-tools/bundles/job-task-types" href="https://docs.databricks.com/aws/en/dev-tools/bundles/job-task-types" target="_self"&gt;https://docs.databricks.com/aws/en/dev-tools/bundles/job-task-types&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For normal separate tasks in the same job, concurrency is controlled by the DAG since tasks without dependencies can run in parallel and tasks with depends_on run after their dependencies. So to limit parallelism, you can group tasks into waves using dependencies. &lt;A title="https://docs.databricks.com/aws/en/jobs/control-flow" href="https://docs.databricks.com/aws/en/jobs/control-flow" target="_self"&gt;https://docs.databricks.com/aws/en/jobs/control-flow&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2026 10:04:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-limit-max-concurrent-tasks-runs-in-a-job/m-p/156143#M54368</guid>
      <dc:creator>amirabedhiafi</dc:creator>
      <dc:date>2026-05-05T10:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to limit max concurrent tasks runs in a job?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-limit-max-concurrent-tasks-runs-in-a-job/m-p/156152#M54373</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/210475"&gt;@yit337&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;There isn’t a max_concurrent_task_runs setting in Databricks Jobs. The only setting you get is max_concurrent_runs, which limits how many runs of the same job can be active at once, plus a workspace-wide limit of 2000 concurrent task runs. If you need to cap how many tasks from a single run execute in parallel, you currently have to do it yourself...either by structuring the DAG in waves (only N tasks can be runnable at a time) or by adding concurrency control inside the task code (for example, a thread pool with max_workers = N).&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT size="2" color="#FF6600"&gt;&lt;STRONG&gt;&lt;I&gt;If this answer resolves your question, could you mark it as “Accept as Solution”? That helps other users quickly find the correct fix.&lt;/I&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2026 12:10:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-limit-max-concurrent-tasks-runs-in-a-job/m-p/156152#M54373</guid>
      <dc:creator>Ashwin_DSA</dc:creator>
      <dc:date>2026-05-05T12:10:31Z</dc:date>
    </item>
  </channel>
</rss>

