Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xemose opened this issue Oct 26, 2018 · 1 comment
Open

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

xemose opened this issue Oct 26, 2018 · 1 comment

Comments

@xemose
Copy link

xemose commented Oct 26, 2018

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
Copy link

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()?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants