How can I set maximum_parallel_jobs_count

Hello CircleCi team.

I test an external application using CircleCi night workflow. All my jobs run in parallel but the external system can’t handle a lot of request from all jobs at the same time. How can I set maximum_worker_count for my tests?

My config:

workflows:
  version: 2.1
  nightly:
    triggers:
      - schedule:
          cron: "0 0 * * *"
          filters:
            branches:
              only:
                - master     
    jobs:
      - regression-test:
          name: Test_1 
      - regression-test:
          name: Test_2 
      - regression-test:
          name: Test_3
      - regression-test:
          name: Test_4 
      - regression-test:
          name: Test_5 
      - regression-test:
          name: Test_6

Hello

You can use the requires key so that the jobs are required to wait for a specific job or specific jobs to complete before the next workflow is able to run.

The following is a working example that waits for the previous job to complete before starting the next one and this occurs for every job but this can be set in anyway that you would like to start the number of jobs you would like to run.

version: 2.1
jobs:
  regression-test:
    docker:
    - image: cimg/android:2022.09
    steps:
      - run: echo "hello world"

workflows:
  nightly:
      jobs:
        - regression-test:
            name: Test_1
        - regression-test:
            name: Test_2 
            requires: 
              - Test_1
        - regression-test:
            name: Test_3
            requires: 
              - Test_2
        - regression-test:
            name: Test_4 
            requires: 
              - Test_3
        - regression-test:
            name: Test_5 
            requires: 
              - Test_4
        - regression-test:
            name: Test_6
            requires: 
              - Test_5

Kind Regards
Owen Oliver