I want to be able to query a gearman server to determine how many instances of a worker I have running (basically I want to make sure that RunTaskA
is available and RunTaskB
is available if there are no workers handling those tasks, I want to be able to send an alert out.
Is there any way to do this?
Also: Mad props if you know of a PHP way to query the gearman server.
Edit: I know about the PHP gearman extension that is available natively, but I am not looking for a task submission extension, I need something that allows me to query the gearman server and see how many workers are serving a specific task.