From: janw Date: Thu, 12 Mar 2009 08:29:24 +0000 (+0000) Subject: Merged statements, changed waiting time from 10 to 60 seconds. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3a4f03147cc92359ad50d320115563efe798f8b8;p=gosa.git Merged statements, changed waiting time from 10 to 60 seconds. -- Diese und die folgenden Zeilen werden ignoriMerert -- M gosaTriggered.pm git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13532 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/trunk/gosa-si/server/events/gosaTriggered.pm b/trunk/gosa-si/server/events/gosaTriggered.pm index 8742aec16..1f77a28f9 100644 --- a/trunk/gosa-si/server/events/gosaTriggered.pm +++ b/trunk/gosa-si/server/events/gosaTriggered.pm @@ -851,13 +851,11 @@ sub trigger_activate_new { &main::daemon_log("$session_id DEBUG: A GosaGroupOfNames with cn '$ogroup' was found in base '".$main::ldap_base."'!", 5); } elsif ($ldap_mesg->count == 0) { &main::daemon_log("$session_id ERROR: A GosaGroupOfNames with cn '$ogroup' was not found in base '".$main::ldap_base."'!", 1); - $main::job_db->exec_statement("UPDATE ".$main::job_queue_tn." SET status = 'waiting' WHERE id = $jobdb_id"); - $main::job_db->exec_statement("UPDATE ".$main::job_queue_tn." SET timestamp = '".(&calc_timestamp(&get_time(), 'plus', 10))."' WHERE id = $jobdb_id"); + $main::job_db->exec_statement("UPDATE ".$main::job_queue_tn." SET status = 'waiting', timestamp = '".(&calc_timestamp(&get_time(), 'plus', 60))."' WHERE id = $jobdb_id"); return undef; } else { &main::daemon_log("$session_id ERROR: More than one ObjectGroups with cn '$ogroup' was found in base '".$main::ldap_base."'!", 1); - $main::job_db->exec_statement("UPDATE ".$main::job_queue_tn." SET status = 'waiting' WHERE id = $jobdb_id"); - $main::job_db->exec_statement("UPDATE ".$main::job_queue_tn." SET timestamp = '".(&calc_timestamp(&get_time(), 'plus', 10))."' WHERE id = $jobdb_id"); + $main::job_db->exec_statement("UPDATE ".$main::job_queue_tn." SET status = 'waiting', timestamp = '".(&calc_timestamp(&get_time(), 'plus', 60))."' WHERE id = $jobdb_id"); return undef; }