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

The Beanstalkd adapter could support SynchronousWorkDispatcher with "peek" #3

Closed
bashilbers opened this issue Dec 8, 2014 · 4 comments

Comments

@bashilbers
Copy link

The Beanstalkd adapter doesn't support the features provided by the SynchronousWorkDispatcher interface.

I think you are wrong about this. See https://github.com/kr/beanstalkd/blob/master/doc/protocol.txt#L360

@mnapoli
Copy link
Member

mnapoli commented Dec 8, 2014

Mmmh the Beanstalkd adapter (i.e. the PHP class) doesn't support the feature (because it's not implemented). But maybe this is this sentence that could be fixed:

In other words, you can't run a task and wait for it to finish, because Beanstalkd doesn't offer that feature.

I haven't thought about using peek, maybe there's indeed a way to make it work! Thanks for the link that's interesting.

@mnapoli mnapoli changed the title The Beanstalkd adapter doesn't support the features provided by the SynchronousWorkDispatcher interface. The Beanstalkd adapter could support SynchronousWorkDispatcher with "peek" Dec 8, 2014
@bashilbers
Copy link
Author

No problemo, if you'd like I can help you. I have written some code that sends a message to Beanstalkd and keeps polling (a.k.a. peeking) untill the job was picked up by a consumer.

@mnapoli
Copy link
Member

mnapoli commented Dec 8, 2014

Feel free to contribute, I'd gladly merge it. I am not using this lib for the moment (it's used by a project that is in production) but anything to make it better is great!

@bashilbers
Copy link
Author

Closing this because I do not have time to implement peek, also it's very old :-)

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

No branches or pull requests

2 participants