Code

after recieving 'savelog 0' job is deleted from job queue
authorrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 26 Mar 2008 15:26:55 +0000 (15:26 +0000)
committerrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 26 Mar 2008 15:26:55 +0000 (15:26 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10000 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/server/events/clMessages.pm

index c606822f5b46a50956a35afa732e48557208bd21..d0ac380720afe31464189eaf6d5f843522664bda 100644 (file)
@@ -385,14 +385,6 @@ sub TASKBEGIN {
 
                }
 
-        #my $sql_statement = "UPDATE $main::job_queue_tn ".
-        #    "SET status='processing', result='$header "."$content' ".
-        #    "WHERE status='processing' AND macaddress LIKE '$macaddress'"; 
-        #&main::daemon_log("$session_id DEBUG: $sql_statement", 7);         
-        #my $res = $main::job_db->update_dbentry($sql_statement);
-        #&main::daemon_log("$session_id INFO: $header at '$macaddress' - '$content'", 5); 
-               
-
 # -----------------------> Update hier
 #  <CLMSG_TASKBEGIN>finish</CLMSG_TASKBEGIN>
 #  <header>CLMSG_TASKBEGIN</header>
@@ -417,8 +409,8 @@ sub TASKEND {
     # clean up header
     $header =~ s/CLMSG_//g;
 
-       if ($header eq "TASKEND softupdate 0") {
-               &main::daemon_log("$session_id DEBUG: softupdate at host '$source' successful", 7);
+       if ($content eq "savelog 0") {
+               &main::daemon_log("$session_id DEBUG: got savelog from host '$source' - jub done", 7);
                my $sql_statement = "DELETE FROM $main::job_queue_tn WHERE status='processing' AND macaddress LIKE '$macaddress'"; 
                &main::daemon_log("$session_id DEBUG: $sql_statement", 7);
                my $res = $main::job_db->del_dbentry($sql_statement);