I have a Client and a Worker running together. My scenario test is like below :
a. The Client send 1 jobs (6 MB), then the Worker get the job and do some business process. It will take about 2 minutes to complete the process.
b. While the worker is still running the business process of the first job (6 MB), the Client send the second job (1 MB). As I can see in the log file the Worker is still proceed the first job, and is not get the second job yet.
Now I think I have 1 pending job in the job server queue, is it correct?
Then I try to execute
$ sqlite3 /tmp/example.db
sqlite> select * from gearman_queue;
sqlite> //no record
Note: After accomplish the first job (6 MB), then the Worker get the second job (1 MB).