![]() |
|
|
Issue Type:
|
Bug
|
Assignee:
|
Jesse Glick
|
Components:
|
workflow-plugin |
Created:
|
23/Apr/15 10:37 AM
|
Description:
|
When two workflow jobs try to trigger the same job at the same time, java.hudson.model.Queue#scheduleInternal may detect a duplicate.
When that happens, a second instance of WaitingItem does not get created, meaning one of the workflow runs will have no listeners related to the triggered job.
When the triggered job ends, only one workflow run will be notified and continue, the other one will stay listening forever.
The workaround I've had to apply to deal with this is running the following in scriptler:
Jenkins.instance.getItemByFullName(jobName)
.builds.findAll{it.building}
.each{it.execution.currentExecutions.get()
.each{it.context.onFailure(new Exception())}
}
|
Environment:
|
Jenkins ver. 1.610
workflow-plugin 1.5
|
Project:
|
Jenkins
|
Priority:
|
Critical
|
Reporter:
|
Michal Piekarczyk
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.