Forum

Cron stops after 30...
 
Notifications
Retirer tout

Cron stops after 30 seconds

3 Posts
2 Utilisateurs
0 Reactions
4,043 Vu
(@ndusch)
Posts: 80
Active Member
Début du sujet
 
[#2153]

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,


 
Posté : 7 Jan PM 20:011
(@babynus)
Posts: 14952
Membre Admin
 

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

 
Posté : 9 Jan PM 23:011
(@babynus)
Posts: 14952
Membre Admin
 

Fix will be deployed in patch V4.5.4


 
Posté : 9 Jan PM 23:011
Share:
Retour en haut