• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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