jenkinsci / jenkinsci/workflow-durable-task-step-plugin

[JENKINS-55573] Show a slaves status in console log when waiting to schedule task

Open
#571 0 comments 0 reactions 0 assignees View on GitHub
component:workflow-durable-task-step-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
46
Forks
110
PR merge metrics
No merged PRs in 30d

Description

When using the plugin with a list of label slave (slave1, slave2, slave) as follow:

node ('slave1||slave2||slave3')

{ ... }

It only show a log when waiting a long time (1 hour) if these slave are busy:

Still waiting to schedule task

Waiting for next available executor on 'slave1||slave2||slave3'

I think it should improve to show more log like  may be show a friendly message log to notify user like "NO NODE IS FREE TO TAKE THE JOB, RETRYING INTERNALLY, WILL PUBLISH NEXT STATUS IN 3 MIN" and show slaves status every 3 minutes:

14:09:08 Still waiting to schedule task

14:09:08

14:09:08 =========The current candidate slave list status for this pipeline========

14:09:08 Waiting for next available executor on slave1||slave2||slave3

14:09:08 slave1 is busy !!!

14:09:08 slave2 is busy !!!

14:09:08 slave3 is busy !!!

14:09:08 **** NO NODE IS FREE TO TAKE THE JOB, RETRYING INTERNALLY, WILL PUBLISH NEXT STATUS IN 3 MIN ****

14:12:08

14:12:08 =========The current candidate slave list status for this pipeline========

14:12:08 slave1 is busy !!!

14:12:08 slave2 is busy !!!

14:12:08 slave3 is busy !!!

14:12:08 **** NO NODE IS FREE TO TAKE THE JOB, RETRYING INTERNALLY, WILL PUBLISH NEXT STATUS IN 3 MIN ****

...

...

14:54:08

14:54:08 =========The current candidate slave list status for this pipeline========

14:54:08 slave1 is busy !!!

14:54:08 slave2 is busy !!!

14:54:08 slave3 is busy !!!

14:54:08 **** NO NODE IS FREE TO TAKE THE JOB, RETRYING INTERNALLY, WILL PUBLISH NEXT STATUS IN 3 MIN ****

14:54:21 Running on slave1 in /home/jenkins/workspace/TestSlaveAlocation2

 

---
Originally reported by nhoangthach, imported from: Show a slaves status in console log when waiting to schedule task


  • status: Open
  • priority: Minor
  • component(s): workflow-durable-task-step-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20251212-090250

Raw content of original issue

When using the plugin with a list of label slave (slave1, slave2, slave) as follow:

node ('slave1||slave2||slave3')

{ ... }

It only show a log when waiting a long time (1 hour) if these slave are busy:
Still waiting to schedule task
Waiting for next available executor on 'slave1||slave2||slave3'

I think it should improve to show more log like  may be show a friendly message log to notify user like "NO NODE IS FREE TO TAKE THE JOB, RETRYING INTERNALLY, WILL PUBLISH NEXT STATUS IN 3 MIN" and show slaves status every 3 minutes:

14:09:08 Still waiting to schedule task
14:09:08
14:09:08 =========The current candidate slave list status for this pipeline========
14:09:08 Waiting for next available executor on slave1||slave2||slave3
14:09:08 slave1 is busy !!!
14:09:08 slave2 is busy !!!
14:09:08 slave3 is busy !!!
14:09:08 **** NO NODE IS FREE TO TAKE THE JOB, RETRYING INTERNALLY, WILL PUBLISH NEXT STATUS IN 3 MIN ****
14:12:08
14:12:08 =========The current candidate slave list status for this pipeline========
14:12:08 slave1 is busy !!!
14:12:08 slave2 is busy !!!
14:12:08 slave3 is busy !!!
14:12:08 **** NO NODE IS FREE TO TAKE THE JOB, RETRYING INTERNALLY, WILL PUBLISH NEXT STATUS IN 3 MIN ****
...
...
14:54:08
14:54:08 =========The current candidate slave list status for this pipeline========
14:54:08 slave1 is busy !!!
14:54:08 slave2 is busy !!!
14:54:08 slave3 is busy !!!
14:54:08 **** NO NODE IS FREE TO TAKE THE JOB, RETRYING INTERNALLY, WILL PUBLISH NEXT STATUS IN 3 MIN ****
14:54:21 Running on slave1 in /home/jenkins/workspace/TestSlaveAlocation2

 

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.