I have a Gearman server running a process which takes a few minutes to finish. I'm running a progress bar to show completion, and am attempting to get the percentages for the bar using the Gearman PHP extension and the jobStatus() function.
The job is definitely active and found, as the first two fields (known + still running) return to true. However the third and fourth fields (numerator and denominator of completion percentage) return with nothing. Does anyone know why this might be or how these numbers are computed?
Is the worker configured to return status?
If you write them yourself you have to do a bit of extra work to get them to return details as they go though.
To be able to use it, you will probably also have alter the client a bit to handle the communication.
Example
client.php
worker.php