PHP Background Jobs
PHPTask Automation
In this example, we are constantly updating the "status" of the jobs table - each job gets updated after a while:
This system checks if a new job is in "pending" mode (just like registrating yourself) and then turns the mode into "processing" with sending an email to the worker aswell, that they are approved. Now, it doesn't have timer that tells the worker how long to do their job - it just ends the job right after the processing begins, by setting the status to "done".
Task Automation w. Redis
Using phpredis/Predis, you can easily make tasks automatic. This app sends email occasionally:
You yourself have to send something to database (for example email) and Redis would automatically detect that. sending you an email back.
Using 'php-resque' Library
This one is a whole library, that uses Redis as work. For this, you'll need to have PHP Composer installed - if you dont have that, download it here here. Now if you have the composer, start making this app:
This is a more "already done for you" technique, as you have a whole library that can do more things than just automating tasks (if interested, you might want to look this up why is phpresque used for not just automation), though making tasks run by themselves is its primary goal and most used approach.