-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jobs on preempted VMs hang indefinitely until manually cancelled #407
Comments
I also have the same issue with the following implementation :
Jenkinsfile used : pipeline {
agent {
label 'preemptible'
}
options {
timestamps()
}
stages {
stage('Test 1') {
steps {
echo 'Hello World'
sh 'hostname'
sh '''#!/bin/bash
COUNT=0
while [ $COUNT -le 100 ]
do
echo "Test # $COUNT"
sleep 1
COUNT=$(( $COUNT + 1 ))
done
'''
}
}
stage('Test 2') {
steps {
echo 'Hello Buddy'
sh 'uname -a'
sleep time: 5, unit: 'MINUTES'
}
}
}
} I simulated a preemption with the following command in the middle of the bash count loop :
Agent log and build log attached. Steps to reproduce :
|
Hello, any updates on this ? This is quite annoying because jobs hangs and are not restarted elsewhere. Do you need additional logs or troubleshooting ? |
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
Ubuntu
Reproduction steps
Expected Results
When a node is preempted, jobs / steps on the node should auto-cancel and be restarted elsewhere.
Actual Results
Anything else?
No response
The text was updated successfully, but these errors were encountered: