[wpkg-users] Global max execution time hardcoded?

Marco Gaiarin gaio at sv.lnf.it
Wed Mar 20 19:06:51 CET 2013


In my setup, switching to 7/WPKG-GP, i need to impose a rather
draconian ''max execution time'' (man 15 minutes) to wpkg run.

After looking in docs and in the code, seems to me that the 'one hour'
limit is hardcoded, but there's two places, eg:

1) the checkCondition() functions, for checks of type 'execute', where
 there's a call like:

	var exitCode = exec(checkPath, 3600, null);

 i don't use execute on check condition, so i skip that, but i think
that have to be revised... at least '-1' to use the default value!

2) the exec() function, where there's the code:

	// Timeout after an hour by default.
	if (timeout <= 0) {
		timeout = 3600;
	}


I'm think i'm going to patch wpkg.js to use another parameters
(globalTimeout?) so can be configured...


But i'm seeking feedback...

-- 
dott. Marco Gaiarin				        GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''                    http://www.sv.lnf.it/
  Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento (PN)
  marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
	   http://www.lanostrafamiglia.it/chi_siamo/5xmille.php
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)



More information about the wpkg-users mailing list