- Don't write queue entry for machine that's not on mlist. This allows us to
gracefully remove a node from the workload, and also it prevents build from stucking when machine is deleted from mlist.
This commit is contained in:
parent
3b2eaa9a22
commit
d50ed44a19
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=208894
1 changed files with 6 additions and 0 deletions
|
@ -5,6 +5,12 @@ buildroot=/var/portbuild
|
|||
i=$1
|
||||
m=$2
|
||||
|
||||
machonline=$(grep -c ${m} ${buildroot}/${i}/mlist)
|
||||
if [ ${machonline} = "0" ]; then
|
||||
rm ${buildroot}/${i}/queue/${m}
|
||||
exit 0
|
||||
fi
|
||||
|
||||
. ${buildroot}/${i}/portbuild.conf
|
||||
if [ -f ${buildroot}/${i}/portbuild.${m} ]; then
|
||||
. ${buildroot}/${i}/portbuild.${m}
|
||||
|
|
Loading…
Reference in a new issue