From: rettenbe Date: Wed, 26 Mar 2008 15:26:55 +0000 (+0000) Subject: after recieving 'savelog 0' job is deleted from job queue X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=14b2f1adf4f2e4cdf9c1fb5f07341d60fdeb55c5;p=gosa.git after recieving 'savelog 0' job is deleted from job queue git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10000 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/server/events/clMessages.pm b/gosa-si/server/events/clMessages.pm index c606822f5..d0ac38072 100644 --- a/gosa-si/server/events/clMessages.pm +++ b/gosa-si/server/events/clMessages.pm @@ -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 # finish #
CLMSG_TASKBEGIN
@@ -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);