DEV Community

Cover image for Jenkins not executing jobs (pending – waiting for next executor)
Gayathri R
Gayathri R

Posted on • Edited on

Jenkins not executing jobs (pending – waiting for next executor)

Problem

In jenkins while executing multiple jobs in parallel. Upto a specific number of jobs are running in parallel, but beyond that, if we submit any job, it was going to waiting state.

Solution

In this case, jenkins is executing jobs in parallel upto some number. That means somewhere we need to increase the parallelism paramater.

  • go to Jenkins -> Manage Jenkins -> Manage Nodes
  • check whether all nodes are active and healthy
  • Check whether disk space is available in nodes

If everything is fine and if the machine have enough hardware configuration, you can increase the number of executors.

How to increase no of executors in jenkins

By default Jenkins has 2 executors. But you can increase the no of executors. You can follow the below given steps.

  • Go to manage Jenkins.
  • After that click om configure system.
  • Inside configure Jenkins you can find #of executors parameter.

Now you can set your desire executors.

Image description

Top comments (1)

Collapse
 
rkmullapudi profile image
Ram

Thank you Gayathri for posting this because we were trying to resolve this issue for 2 days and luckily came across this post! Cheers!