2014-01-15 Ramon Novoa <rnovoa@artica.es>

* bin/pandora_server: Prevent the thread that executes periodic tasks
	  from dying on database errors.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9324 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Ramon Novoa 2014-01-15 11:10:53 +00:00
parent b3bc59e9ed
commit 13c843274a
2 changed files with 84 additions and 78 deletions

View File

@ -1,3 +1,8 @@
2014-01-15 Ramon Novoa <rnovoa@artica.es>
* bin/pandora_server: Prevent the thread that executes periodic tasks
from dying on database errors.
2014-01-14 Sergio Martin <sergio.martin@artica.es>
* util/recon_scripts/snmpdevices.pl: Added address check

View File

@ -244,7 +244,7 @@ sub pandora_server_tasks ($) {
my $counter = 0;
while (1) {
eval{
# TASKS EXECUTED EVERY 5 SECONDS (Low latency tasks)
# --------------------------------------------------
if (($counter % 5) == 0) {
@ -325,6 +325,7 @@ sub pandora_server_tasks ($) {
else {
$counter++;
}
};
sleep (1);
}