php-resque icon indicating copy to clipboard operation
php-resque copied to clipboard

How do I programmatically start a worker

Open nmeri17 opened this issue 3 years ago • 0 comments

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:

nmeri17 avatar May 19 '22 03:05 nmeri17