Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for retrieving the status of a task asynchronously #2

Open
matslindh opened this issue Jul 3, 2009 · 3 comments
Open

Support for retrieving the status of a task asynchronously #2

matslindh opened this issue Jul 3, 2009 · 3 comments

Comments

@matslindh
Copy link

I've created a patch to add support for calling get_status on the Gearman-server. To support this I've added a new property to Task which contains the server that is responsible for running the task, in addition to adding two new methods (and an array to keep track) to Client to be able to match server addresses to sockets easily. The new method is named getStatus(server, handle) and returns the ['data'] element (containing handle, numerator, denominator, finished, etc.).

The patchset is available here:

http://e-mats.org/resources/GearmanGetStatusSupport.tar.gz

It's against the current origin/master.

@dpkirchner
Copy link

Will this patch be merged in with net_gearman? It looks like it'd be really useful.

@matslindh
Copy link
Author

Not sure what and if it ended up in Net_Gearman (53e1085), but a more lengthy discussion took place here:

https://github.com/matslindh/net_gearman/commit/53e108503f06d5ee4f0d72110e9d1bc9c26cf619

@dpkirchner
Copy link

Ahh, interesting. It looks like it kind of petered out there. I'll likely end up wrapping Gearman up with a local library so that whatever ends up happening I can keep it behind the scenes. Thanks.

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

No branches or pull requests

2 participants