[Swift-commit] cog r3482

swift at ci.uchicago.edu swift at ci.uchicago.edu
Sat Sep 29 16:15:38 CDT 2012


------------------------------------------------------------------------
r3482 | hategan | 2012-09-29 16:13:54 -0500 (Sat, 29 Sep 2012) | 1 line

fixed passing of maxwalltime in the worker
------------------------------------------------------------------------
Index: modules/provider-coaster/resources/worker.pl
===================================================================
--- modules/provider-coaster/resources/worker.pl	(revision 3481)
+++ modules/provider-coaster/resources/worker.pl	(working copy)
@@ -1727,8 +1727,14 @@
 		elsif ($pair[0] eq "identity") {
 			$JOBID = $pair[1];
 		}
-		elsif ($pair[0] eq "maxwalltime") {
-			$MAXWALLTIME = $pair[1];
+		elsif ($pair[0] eq "attr") {
+			my @ap = split(/=/, $pair[1], 2);
+			if ($ap[0] eq "maxwalltime") {
+				$MAXWALLTIME = $ap[1];
+			}
+			else {
+				wlog WARN, "Ignoring attribute $ap[0] = $ap[1]\n";
+			}
 		}
 		elsif ($pair[0] eq "stagein") {
 			my @pp = split(/\n/, $pair[1], 3);



More information about the Swift-commit mailing list