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

Allow more concurrent polling actions

    Details

    • Similar Issues:

      Description

      Hi,

      We're using ScriptTrigger and are finding it a great addition to Jenkins,
      thanks for working on it.

      We've recently added a lot more jobs using ScriptTrigger, and have run in
      to a concurrency limitation.

      Each job runs a script that takes a few seconds, and we'd like to poll very frequently.

      However, we're finding that there's a limit to the number of jobs that we can have in this configuration as only one script is run at a time (despite the fact that we have many slaves to run the scripts)

      I have two suggestions for improvements here:

      1. Implement equals() on the Runnable objects so that the jenkins queue will drop duplicate jobs from the queue. This won't allow more to be run, but it will stop the queue from overflowing if the rate of jobs is greater than the single executor can handle.

      2. Allow for configuration of the allowed concurrency, the same way the built-in SCM trigger does (https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/triggers/SCMTrigger.java#L224). Then we could increase the concurrency to match the number of slaves and poll a lot more frequently.

      Thanks,

      James

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/org/jenkinsci/lib/xtrigger/AbstractTrigger.java
          http://jenkins-ci.org/commit/xtrigger-lib/84c476025b49ba8aa14d8c7136c91eb469dfc349
          Log:
          Override hascode/equals() for JENKINS-16509

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/org/jenkinsci/lib/xtrigger/AbstractTrigger.java http://jenkins-ci.org/commit/xtrigger-lib/84c476025b49ba8aa14d8c7136c91eb469dfc349 Log: Override hascode/equals() for JENKINS-16509

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              james_w James Westby
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: