Forum

Background activity...
 
Notifications
Retirer tout

Background activity setup - bg stops after two minutes

7 Posts
2 Utilisateurs
0 Reactions
7,529 Vu
(@tonix)
Posts: 52
Active Member
Début du sujet
 
[#5070]

I'm here again trying to make the "internalcron working".
I've yet version 5.5.4, so I don't know if this feature changed a lot on next versions (I'm planning to migrate nextly).

When I configure my IMAP connection for reading emails, and then I start the background activity, the background task works for a couple of minutes, than the background activity status turns back to stopped.

Which is the principle for which this feature should work without stopping h24, of course without putting the PHP execution limits to weeks?
What am I missing? Should an admin be always logged?

Thanks,

Tonino


 
Posté : 10 Avr PM 21:044
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

Please check if error is logged on projeqtor error log file.

CRON Process never ends, so it should not stop unless :
- an error occurs
- you php configuration forbids to set time_limit to zero (no limit)


 
Posté : 11 Avr PM 21:044
(@tonix)
Posts: 52
Active Member
Début du sujet
 

Of course php is not permitted to set itself for infinite loop. This is a normal safety precaution.
Wouldn't it be easier to provide a cron php file to execute when needed?
Maybe a simple cron php file which will call already existing functions for polling IMAP, importing files, etc...


 
Posté : 11 Avr PM 22:044
(@babynus)
Posts: 14952
Membre Admin
 

Of course php is not permitted to set itself for infinite loop.

It is not a question of infinite loop, but infiinite (or at least not limited) execution time
This is how internal CRON process works.

Using linux CRON process is out of question : too hard to configure for most users and not available on Windows...


 
Posté : 11 Avr PM 22:044
(@tonix)
Posts: 52
Active Member
Début du sujet
 

(real) cron is the only affordable solution, just need two lines of comment and it's done. Windows users may use actual scheduler as alternative, but I feel they will prefer schtasks.
It should not be so difficult to extract one or two files to put be in cron, but it would save time and nightmares to the most of users.


 
Posté : 11 Avr PM 23:044
(@babynus)
Posts: 14952
Membre Admin
 

(real) cron is the only affordable solution

No, our internal system works fine

just need two lines of comment and it's done

If it is so simple, just do it 😉

t should not be so difficult to extract one or two files to put be in cron

Not so easy and really no interest

but it would save time and nightmares to the most of users.

Our internal CRON works like a charm for most users. We won't change things that work for most to please single user.


 
Posté : 12 Avr PM 19:044
(@tonix)
Posts: 52
Active Member
Début du sujet
 

I think that is deeply wrong, Ok, don't want to start a war.
When I will have time I will implement it.
Regards.


 
Posté : 13 Avr AM 11:044
Share:
Retour en haut