summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c17eed3)
raw | patch | inline | side by side (parent: c17eed3)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 6 May 2009 14:37:14 +0000 (14:37 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 6 May 2009 14:37:14 +0000 (14:37 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13621 594d385d-05f5-0310-b6e9-bd551577e9d8
trunk/gosa-si/server/events/clMessages.pm | patch | blob | history |
index 2b4ff98d942eda75fccbb9a9795b14cd93e70c6f..36fac0be2d22ebe7b500251d9c6fe4d218271362 100644 (file)
# other TASKBEGIN msgs
} else {
+
+ # TASKBEGIN msgs do only occour during a softupdate or a reinstallation
+ # of a host. Set all waiting update- or reinstall-jobs for host to
+ # processing so they can be handled correctly by the rest of the function.
+ my $waiting_sql = "UPDATE $main::job_queue_tn SET status='processing' WHERE status='waiting' AND macaddress LIKE '$macaddress' AND (headertag='trigger_action_update' OR headertag='trigger_action_reinstall')";
+ &main::daemon_log("$session_id DEBUB: $waiting_sql", 7);
+ my $waiting_res = $main::job_db->update_dbentry($waiting_sql);
+
# select processing jobs for host
my $sql_statement = "SELECT * FROM $main::job_queue_tn WHERE status='processing' AND macaddress LIKE '$macaddress'";
&main::daemon_log("$session_id DEBUG: $sql_statement", 7);