remove debug log

master
Dirk Heilig 2024-04-05 11:08:04 +02:00
parent 245f9ba791
commit b9b53dca34
2 changed files with 1 additions and 10 deletions

View File

@ -2,6 +2,6 @@
cd "$( dirname "${BASH_SOURCE[0]}" )"
while :; do
sleep 5 &
./queueWorker >> /var/www/html/log.txt
./queueWorker
wait
done

View File

@ -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");