Forum

Running of Cron is ...
 
Notifications
Retirer tout

Running of Cron is not correctly checked

2 Posts
2 Utilisateurs
0 Reactions
2,422 Vu
(@burgerzs)
Posts: 24
Active Member
Début du sujet
 
[#6430]

Hi,

It seems to me that when the running of Cron is checked in Cron relaunch(), then it is not taken into account that in RUNNING file there are more items, not only the time. e.g. 1578120959|879|5e1036d65c5751.75848963

Thus Cron is relaunched after a user logs in.

As a temporary correction I changed:
$last=fgets($handle);
to this:
$tmp_runningfile=fgets($handle);
$tmp_runningfile_array=explode("|",$tmp_runningfile);
$last=reset($tmp_runningfile_array);

It seems to be ok now.

Regards,
Zsolt


 
Posté : 04/01/2020 10:28 am
(@babynus)
Posts: 14952
Membre Admin
 

You are right.
The changes done on Cron::check() where not done on Cron::relaunch().

Thanks for pointing out the issue and proposing a patch.
Fix will be included in V8.3.2


 
Posté : 06/01/2020 7:40 pm
Share:
Retour en haut