With the aid of this question here, I've been busy taking over an woefully undocumented gearman setup from a previous dev. Funnily enough, I've never seen such a woefully poor excuse for documentation as the gearman official website either, so have spent a while writing my own for the repo.
Anyway, I'm doing ok regardless as I'm persistent, so all good, except my staging site, which is unusable as it will not load memcache, due to stuck jobs.
So on to monitor, I run:
gearadmin --status | sort -n | column -t
Production workers show
0 0 26
all done, great!
On staging, I was left with
2550 0 0
...basically every product failing.
So I ran
/usr/bin/gearman -t 1000 -n -w -f what_i_need_to_clear > /dev/null
This seemingly clears a job queue. lol. Almost. Now I have
5 4 4
How do I clear those? as the jobs just back up behind it. I just want to reset my staging to
0 0 0
I'm using a federated table setup with PHP/MySQL/Sphinx/Memcache
Can anyone shed some light on this, or show me how to debug those jobs?