peppeocchi / php-cron-scheduler

PHP cron job scheduler
MIT License
811 stars 144 forks source link

Run worker in background and add jobs from external file #72

Open xemose opened 6 years ago

xemose commented 6 years ago

If the worker is running in the background, is it possible to add jobs from another file? Both files are in the same directory, but one file worker.php will run in the background and execute jobs. Another file is a interface for the scheduler, so the web application can add jobs to it whenever it wants.

Also how do you remove jobs?

Thank you in advanced for all the help! 👍

officeutils commented 5 years ago

What is real use case of your scheduler without jobs persistency between instances creations? Do I need always add jobs and then call $scheduler->run()?