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

Queued Kubernetes destined jobs do not execute in FIFO order.

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • kubernetes-plugin
    • None
    • Jenkins: 2.263.4
      Kubernetes-Plugin: 1.29.0
      Kubernetes: v1.20.2+k3s1

      With a `Concurrency Limit` (containerCap) limit set jobs queue as expected. However, as jobs finish the queued jobs do not execute in FIFO order.  If I am not mistaken they appear to be executed in ASCII Sort of the job Name... 

      With a concurrency limit of 3, I kicked off 11 jobs (using the `Build Now` button) and they executed in the following order... 

      1,2,3,10,11,4,5,6,7,8,9

       

          [JENKINS-64885] Queued Kubernetes destined jobs do not execute in FIFO order.

          Leland Sindt added a comment - - edited

          (see screen grabs...)

          with a queue of 

          zzz 5
          aaa 4
          aaa 3
          aaa 2
          zzz 4
          zzz 3

          I would expect zzz3 to be picked up next.. however, aaa 2, aaa 3, aaa 4 were executed before zzz 3... etc.

           

          Leland Sindt added a comment - - edited (see screen grabs...) with a queue of  zzz 5 aaa 4 aaa 3 aaa 2 zzz 4 zzz 3 I would expect zzz3 to be picked up next.. however, aaa 2, aaa 3, aaa 4 were executed before zzz 3... etc.  

          I think we are having the same issue (when waiting for free resources, e.g. RAM or CPU). To me it looks like the Jenkins scheduling is completely skipped while the order in which they are actually getting executed seems to be more or less random. Depending on which one asks first after the resources became available.

          Joerg Schwaerzler added a comment - I think we are having the same issue (when waiting for free resources, e.g. RAM or CPU). To me it looks like the Jenkins scheduling is completely skipped while the order in which they are actually getting executed seems to be more or less random. Depending on which one asks first after the resources became available.

            Unassigned Unassigned
            lelandsindttouchnet Leland Sindt
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: