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

How do I programmatically start a worker #63

Open
nmeri17 opened this issue May 19, 2022 · 0 comments
Open

How do I programmatically start a worker #63

nmeri17 opened this issue May 19, 2022 · 0 comments
Labels

Comments

@nmeri17
Copy link

nmeri17 commented May 19, 2022

My question:

Hi. I wrote a wrapper for resque so I can initialize my environment before starting resque worker. According to docs, worker is triggered from vendor/bin/resque, which means I need to include, ostensibly, by cd-ing there. Is there some less hacky way recommended to go about this? Consumers of my wrapper may set bin folder to something else that will make it unreliable to hardcode

I just need to programmatically start the worker

My Environment

  • PHP-Resque version:
  • PHP version:
  • Redis version:
  • Server type and version:
  • Operating System and version:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant