• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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