[Fusionforge-commits] FusionForge branch feature/reactivity updated. 9d58dc04e1f7fe1fc7bda2b3c2c4e9065f3d493e

Sylvain Beucler beuc-inria at fusionforge.org
Thu Dec 11 17:46:54 CET 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, feature/reactivity has been updated
       via  9d58dc04e1f7fe1fc7bda2b3c2c4e9065f3d493e (commit)
      from  6ea8e88af0b78dc17be7a09629b64e7a3dfd5db1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9d58dc04e1f7fe1fc7bda2b3c2c4e9065f3d493e
Author: Sylvain Beucler <sylvain.beucler at inria.fr>
Date:   Thu Dec 11 17:46:42 2014 +0100

    reactivity: running only sysactions installed on the current node

diff --git a/src/bin/light.php b/src/bin/light.php
index 165f91d..afcc833 100644
--- a/src/bin/light.php
+++ b/src/bin/light.php
@@ -83,12 +83,15 @@ while (true) {
 		while ($arr = db_fetch_array($res)) {
 				usergroups_sync();
 				$script = sysaction_get_script($arr['plugin_id'], $arr['sysaction_id']);
+				if (!file_exists($script))
+						// Not installed on this node, skipping
+						continue;
 				if (!is_executable($script)) {
 						db_query_params("UPDATE sysactionsq SET status=$1, error_message=$2"
 										. " WHERE sysactionsq_id=$3",
 										array('ERROR',
 											  "Cron job {$arr['plugin_id']}/{$arr['sysaction_id']}"
-											  . " '$script' not found or not executable.\n",
+											  . " '$script' not executable.\n",
 											  $arr['sysactionsq_id']));
 						continue;
 				}

-----------------------------------------------------------------------

Summary of changes:
 src/bin/light.php |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list