r83514 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83513‎ | r83514 | r83515 >
Date:06:45, 8 March 2011
Author:tstarling
Status:ok
Tags:
Comment:
Re-add the background+wait, apparently it was needed for the trap to work.
Modified paths:
  • /branches/wmf/1.17wmf1/maintenance/jobs-loop.sh (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/maintenance/jobs-loop.sh
@@ -18,7 +18,8 @@
1919 db=`php -n nextJobDB.php --type="$type"`
2020 if [ -n "$db" ]; then
2121 echo "$db $type"
22 - nice -n 20 php runJobs.php --wiki="$db" --procs=4 --type="$type"
 22+ nice -n 20 php runJobs.php --wiki="$db" --procs=4 --type="$type" &
 23+ wait
2324 moreprio=y
2425 fi
2526 done
@@ -33,7 +34,8 @@
3435 sleep 5
3536 else
3637 echo "$db"
37 - nice -n 20 php runJobs.php --wiki="$db" --procs=4
 38+ nice -n 20 php runJobs.php --wiki="$db" --procs=4 &
 39+ wait
3840 fi
3941 done
4042

Status & tagging log