Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Why when upgrade gearman python package from 'gearman(2.0.2)' to 'gearman3(0.2.0)', sometimes job missed and delayed #8

Open
code42099 opened this issue Sep 2, 2020 · 1 comment

Comments

@code42099
Copy link

We often used the following code to connect to gearman server to get job:

gm_worker = gearman.GearmanWorker(['localhost:4730'])
gm_worker.set_client_id('xxxworker')
gm_worker.register_task(b'xxx', func1)
gm_worker.work()
With python 2.7.18 and gearman package 'gearman(2.0.2)' installed, the code worked.

As python 2 is runing to the end of lifetime, we upgrade to python 3.6 and installing gearman python package 'gearman3(0.2.0)'. From then on, job sometimes missed, sometimes delayed no more than 10 seconds.

Now we have 2 worker,one for python 2.7.18 and gearman package 'gearman(2.0.2)', still working, but with limited python 2 time span; another for python 3.6 and gearman python package 'gearman3(0.2.0)', job sometimes missing and sometimes delayed.

Till now, we cannot find the cause.

Can somebody help?

Or are there any similar job server like gearman?

                                    Many Thanks!
                                    Howard
@selff
Copy link

selff commented Nov 11, 2020

i have similar problems

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants