Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-65362

Upstream and downstream jobs should run on only one executor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Not A Defect
    • Component/s: _unsorted
    • Labels:
      None
    • Similar Issues:

      Description

      Currently I have only one slave & one executor
      And we want to run upstream and downstream jobs on this single executor

      1. Suppose we have upstream job A which triggers downstream job B
      2. When upstream job starts running on executor, downstream job B goes into the queue
      3. As there is only one executor due to which the downstream job remains in the queue & it doesn't get a chance to run on executor as the executor is busy with running the upstream job. This leads to a deadlock scenario

      Is this is an issue or bug in jenkins itself?
      If it is not an issue then can someone please provide an appropriate solution for it

      I want this to happen:

      I want that the job B to run after the job A automatically from the queue on the "same executor",
      After job B is done executing, I again want job A to run again, but isn't happening
      Note: "there is this limitation that I cannot have multiple executors in my project for doing this"

        Attachments

          Activity

          Hide
          markewaite Mark Waite added a comment - - edited

          Having exhausted the question on the user mailing list, you hoped that appealing to a much narrower audience would provide a different answer?

          If the executor is busy running the upstream job, there is no facility in Jenkins that will allow it to surrender the executor to the downstream job, then reclaim the executor for the continuation of the upstream job.

          It is not clear why you have declared that there is a limitation that you cannot have multiple executors, but with that limitation and your apparent requirement that the upstream job must wait for the downstream job to complete, then I see no solution. Closing the issue.

          Show
          markewaite Mark Waite added a comment - - edited Having exhausted the question on the user mailing list , you hoped that appealing to a much narrower audience would provide a different answer? If the executor is busy running the upstream job, there is no facility in Jenkins that will allow it to surrender the executor to the downstream job, then reclaim the executor for the continuation of the upstream job. It is not clear why you have declared that there is a limitation that you cannot have multiple executors, but with that limitation and your apparent requirement that the upstream job must wait for the downstream job to complete, then I see no solution. Closing the issue.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            user77 user77
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: