DEV Community

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

Posted on • Edited on

9 2

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

Billboard image

Deploy and scale your apps on AWS and GCP with a world class developer experience

Coherence makes it easy to set up and maintain cloud infrastructure. Harness the extensibility, compliance and cost efficiency of the cloud.

Learn more

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!

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs