PHP Classes

PHP Cron Job Lock: Manage lock files while a cron job is running

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2021-10-01 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 141 This week: 9All time: 9,046 This week: 35Up
Version License PHP version Categories
cron-task 4.1.6The PHP License7PHP 5, Language
Description Author

This class can manage lock files while a cron job is running.

It extends the loader class to provide functions that use file locks to check if a given cron task runs so the job does not run multiple times.

The class can also unlock the file to allow the same cron job to run again when it is time.

Innovation Award
PHP Programming Innovation award nominee
October 2021
Nominee
Vote
Cron a is a popular program that is available in UNIX-based operating systems like Linux. It is capable of running other programs at specific schedules.

This capability of the cron program is helpful to execute tasks that need to be done regularly, like, for instance, creating a backup copy of a database.

Some tasks cannot be executed more than once at the same time. One way to assure that a job runs only once at a time is to use file locks.

This package uses file locks to prevent that the same task executes more than once.

Manuel Lemos
Picture of Slawomir Kaleta
  Performance   Level  
Name: Slawomir Kaleta <contact>
Classes: 15 packages by
Country: Poland Poland
Age: ???
All time rank: 243558 in Poland Poland
Week rank: 45 Up4 in Poland Poland Up
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Files folder imageExceptions (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Plain text file Task.php Class Class source

  Files folder image Files  /  Exceptions  
File Role Description
  Plain text file ConfigException.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:141
This week:9
All time:9,046
This week:35Up
For more information send a message to info at phpclasses dot org.