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

Bringing slaves online after running a build does not re-register gearman jobs


    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: gearman-plugin
    • Labels:
    • Environment:
      ubuntu precise
      python gear server 0.5.6
      jenkins 1.565.3
      gearman plugin 0.1.1
    • Similar Issues:


      Gearman client requests to offline slave on a job request causes gearman jobs to unregister however the jobs never re-register so no other requests will get processed. The only way to get the job re-registered is if you restart the gearman plugin service in the Jenkins global settings. This only happens when there are multiple executors setup on a node.

      Steps to repro:
      1. setup a jenkins job (do not set the label and set to run concurrently)
      2. setup a slave with multiple executors (do not setup a label)
      3. install gearman-plugin
      4. start/connect the gearman-plugin service to a gear server. make sure jobs have been registered.
      5. use the [gearman-plugin-client https://github.com/zaro0508/gearman-plugin-client] to request a job with OFFLINE_NODE_WHEN_COMPLETE=true and iterations=number_of_executors

      gear_client.py --function=build:myjob --iterations=2 --params='



      6. gearman jobs get unregistered as expected.
      7. bring the node back online.

      gearman jobs should re-registered but it does not therefore no other job requested get serviced.


          Issue Links


            zaro Khai Do created issue -
            zaro Khai Do made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-25867 [ JENKINS-25867 ]
            zaro Khai Do made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 163755 ] JNJira + In-Review [ 197306 ]


              • Assignee:
                zaro Khai Do
                zaro Khai Do
              • Votes:
                0 Vote for this issue
                3 Start watching this issue


                • Created: