• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

CRON problem / Nginx

ErwanG

Regular Pleskian
Hello,

I've problem with a cron task with Plesk 12.
It's a php file which is loaded every 5 minutes : "php /var/www/vhosts/domain/httpdocs/cron.php".
It's a data processing. When the first processing data is completed, the second is loaded... etc....

Sometimes, the task is not finished before the 5 minutes so i use a "status" field (0 to 1 at the beginning) with the data in MySQL for that the next task begin with the next data.
The problem is that, sometimes, not always, the next task begin with the same data.

Task 1
> Data 1 (in progress)
> Data 2 (not beginning)
..

Task 2 must begin with Data 2 but begin with Data 1 even if only "Datas" (not beginning) are called. The code is correct.

My question is :
Is that Nginx can have an influence on what kind of treatment ?

Thank you.
 
Back
Top