Skip to content
This repository has been archived by the owner on Apr 18, 2018. It is now read-only.

Get job_id from worker code #57

Closed
profy12 opened this issue Mar 1, 2014 · 1 comment
Closed

Get job_id from worker code #57

profy12 opened this issue Mar 1, 2014 · 1 comment

Comments

@profy12
Copy link

profy12 commented Mar 1, 2014

It seems to be impossible to get job id from worker code with python-gearman

I need to get job id from the worker, before with php lib I was setting option GEARMAN_WORKER_GRAB_UNIQ with call to function addOptions(GEARMAN_WORKER_GRAB_UNIQ);

After that, with my worker, I was able to get the job id with calling the "unique" attribut like that : $job->unique()

Do you know a way to do the same with the python lib ?

Thanks.

@profy12
Copy link
Author

profy12 commented Mar 1, 2014

Looking in the code I seen that GRAB_JOB_UNIQ is already the default and I can get it with unique attribut of gearman_job.

@profy12 profy12 closed this as completed Mar 1, 2014
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

1 participant