Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Background activity...
 
Notifications
Clear all

Background activity setup - bg stops after two minutes

7 Posts
2 Users
0 Reactions
7,572 Views
(@tonix)
Posts: 52
Active Member
Topic starter
 
[#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


 
Posted : 10 Apr 2018 21H28
babynus
(@babynus)
Posts: 14966
Main Contributor 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)


 
Posted : 11 Apr 2018 21H55
(@tonix)
Posts: 52
Active Member
Topic starter
 

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...


 
Posted : 11 Apr 2018 22H08
babynus
(@babynus)
Posts: 14966
Main Contributor 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...


 
Posted : 11 Apr 2018 22H18
(@tonix)
Posts: 52
Active Member
Topic starter
 

(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.


 
Posted : 11 Apr 2018 23H11
babynus
(@babynus)
Posts: 14966
Main Contributor 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.


 
Posted : 12 Apr 2018 19H57
(@tonix)
Posts: 52
Active Member
Topic starter
 

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


 
Posted : 13 Apr 2018 11H33
Share:

Scroll to Top