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.
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()?
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! 👍