Login Try it Free

Trigger worker from

An Tran Jun 08, 2012 09:20AM MDT

Hi,

Is it possible to trigger the background workers from my PHP code? Can i use PHP command "exec" directly from my PHP code?

Thanks for answers

Up 7 Rated Down
Scott Jun 08, 2012 10:24AM MDT Pagoda Box Agent

No it isn’t. Worker exec commands should start the worker and create an endless loop. The worker can check some kind of queue (db, redis) for tasks and run those taks when they come in. But the worker process can’t be started from your php.

Post Your Answer

Your name (required)
Your email address (required)
Answer (required)

Contact Us