Forum

Cron stops after 30...
 
Notifications
Clear all

Cron stops after 30 seconds

3 Posts
2 Users
0 Reactions
4,044 Views
(@ndusch)
Posts: 80
Active Member
Topic starter
 
[#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,


 
Posted : 07 Jan 2015 20H24
(@babynus)
Posts: 14952
Member 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

 
Posted : 09 Jan 2015 23H02
(@babynus)
Posts: 14952
Member Admin
 

Fix will be deployed in patch V4.5.4


 
Posted : 09 Jan 2015 23H43
Share:

Scroll to Top