remove debug log
parent
245f9ba791
commit
b9b53dca34
|
@ -2,6 +2,6 @@
|
|||
cd "$( dirname "${BASH_SOURCE[0]}" )"
|
||||
while :; do
|
||||
sleep 5 &
|
||||
./queueWorker >> /var/www/html/log.txt
|
||||
./queueWorker
|
||||
wait
|
||||
done
|
|
@ -1,6 +1,5 @@
|
|||
#!/usr/bin/env php
|
||||
<?php
|
||||
echo "starting queue worker\n";
|
||||
$queueDir=__DIR__.'/../queue';
|
||||
$queueDir=realpath($queueDir);
|
||||
$queueItems=glob($queueDir.'/*.json');
|
||||
|
@ -16,21 +15,13 @@ if(empty($queueItems)){
|
|||
unlink($oldFile);
|
||||
}
|
||||
}
|
||||
|
||||
sleep(5);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
sort($queueItems);
|
||||
$jobFile=array_shift($queueItems);
|
||||
echo "working on $jobFile\n";
|
||||
|
||||
$jobId=basename($jobFile, '.json');
|
||||
$tags=json_decode(file_get_contents($jobFile), true);
|
||||
|
||||
$zipFile=$dlDir.$jobId.'.zip';
|
||||
|
||||
chdir(__DIR__.'/../AuerNameTag');
|
||||
$shellArgs=array_map('escapeshellarg', $tags);
|
||||
system("rm -rf out");
|
||||
|
|
Loading…
Reference in New Issue