View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Cron stops after 30 seconds - ProjeQtOr
 
 

Cron stops after 30 seconds

More
07 Jan 2015 18:24 #1 by ndusch
Hello Babynus,

Cron in background task stops after 30 seconds and doesn't restart anymore.

I think there is a bug in "projeqtor_set_time_limit($timeout)" function and "tool/projeqtor.php" file :
if ($max != 0 && $timeout > $max) { // Don't bother if unlimited
@set_time_limit($timeout);
}

By default, PHP sets the time limit to 30 seconds. Before running cron, Projeqtor executes projeqtor_set_time_limit(0);, $max is 30s by default and $timeout is 0, so @set_time_limit is not executed and time limit stay at 30s.

Regards,
The topic has been locked.
More
09 Jan 2015 21:02 #2 by babynus
Replied by babynus on topic Cron stops after 30 seconds
Hi,

You're right !
Fix is relacing the test line
if ($max != 0 && $timeout > $max) { // Don't bother if unlimited
with
if ($max != 0 && ($timeout > $max or $timeout==0) ) { // Don't bother if unlimited

Babynus
Administrator of ProjeQtOr web site
The topic has been locked.
More
09 Jan 2015 21:43 #3 by babynus
Replied by babynus on topic Cron stops after 30 seconds
Fix will be deployed in patch V4.5.4

Babynus
Administrator of ProjeQtOr web site
The topic has been locked.
Moderators: babynusprotion
Time to create page: 0.040 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.