s/using-githubs-security-features-to-secure-your-use-of-github-actions)
    * [ Automatic token authentication  ](/en/actions/security-guides/automatic-token-authentication)

  * Creating actions 

    * [ About custom actions  ](/en/actions/creating-actions/about-custom-actions)
    * [ Create a Docker container action  ](/en/actions/creating-actions/creating-a-docker-container-action)
    * [ Create a JavaScript action  ](/en/actions/creating-actions/creating-a-javascript-action)
    * [ Create a composite action  ](/en/actions/creating-actions/creating-a-composite-action)
    * [ Metadata syntax  ](/en/actions/creating-actions/metadata-syntax-for-github-actions)
    * [ Dockerfile support  ](/en/actions/creating-actions/dockerfile-support-for-github-actions)
    * [ Set exit codes  ](/en/actions/creating-actions/setting-exit-codes-for-actions)
    * [ Publish in GitHub Marketplace  ](/en/actions/creating-actions/publishing-actions-in-github-marketplace)
    * [ Share from your private repository  ](/en/actions/creating-actions/sharing-actions-and-workflows-from-your-private-repository)
    * [ Share with your organization  ](/en/actions/creating-actions/sharing-actions-and-workflows-with-your-organization)
    * [ Release and maintain actions  ](/en/actions/creating-actions/releasing-and-maintaining-actions)
    * [ CLI setup action  ](/en/actions/creating-actions/developing-a-third-party-cli-action)

  * [ Guides for GitHub Actions  ](/en/actions/guides)

  * [ GitHub Actions ](/en/actions "GitHub Actions") / 
  * [ Using jobs ](/en/actions/using-jobs "Using jobs") / 
  * [ Concurrency ](/en/actions/using-jobs/using-concurrency "Concurrency")

#  Using concurrency

Run a single job at a time.

##  In this article

  * Overview 
  * Using concurrency in different scenarios 
  * Monitoring your current jobs in your organization or enterprise 

##  Overview

By default, GitHub Actions allows multiple jobs within the same workflow,
multiple workflow runs within the same repository, and multiple workflow runs
across a repository owner's account to run concurrently. This means that
multiple workflow runs, jobs, or steps can run at the same time.

GitHub Actions also allows you to control the concurrency of workflow runs, so
that you can ensure that only one run, one job, or one step runs at a time in
a specific context. This can be useful for controlling your account's or
organization's resources in situations where running multiple workflows, jobs,
or steps at the same time could cause conflicts or consume more Actions
minutes and storage than expected.

For example, the ability to run workflows concurrently means that if multiple
commits are pushed to a repository in quick succession, each push could
trigger a separate workflow run, and these runs will execute concurrently.

##  Using concurrency in different scenarios

You can use ` jobs.<job_id>.concurrency ` to ensure that only a single job or
workflow using the same concurrency group will run at a time. A concurrency
group can be any string or expression. Allowed expression contexts: [ ` github
` ](/en/actions/learn-github-actions/contexts#github-context) , [ ` inputs `
](/en/actions/learn-github-actions/contexts#inputs-context) , [ ` vars `
](/en/actions/learn-github-actions/contexts#vars-context) , [ ` needs `
](/en/actions/learn-github-actions/contexts#needs-context) , [ ` strategy `
](/en/actions/learn-github-actions/contexts#strategy-context) , and [ ` matrix
` ](/en/actions/learn-github-actions/contexts#matrix-context) . For more
information about expressions, see " [ Expressions ](/en/actions/learn-github-
actions/expressions) ."

You can also specify ` concurrency ` at the workflow level. For more
information, see [ ` concurrency ` ](/en/actions/using-workflows/workflow-
syntax-for-github-actions#concurrency) .

When a concurrent job or workflow is queued, if another job or workflow using
the same concurrency group in the repository is in progress, the queued job o