-
Notifications
You must be signed in to change notification settings - Fork 104
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
Define job callable name per Annotation #164
Comments
Seconded. |
I have been flummoxed by this behavior as well. Fundamental Question:
Example Code (copied verbatim from the gearman.org home page):
Above, the Client notifies the Job Server that it wants the reverse Function to be performed. When the Worker boots it informs the Job Server that it has the ability to perform the reverse Function. Moreover, additional Workers may be spawned at anytime that are also able to perform reverse (and/or other abilities). The Client does not care, and should not care, which Worker performs reverse, it only cares that the Job Server knows that it wants reverse performed. The Job Server then coordinates what Worker to delegate the work of reverse to. Takeaway:
The bundle in its current state, as far as I can tell, is unable to replicate the reverse example.
Current Behavior:
Desired Behavior:
So, as indicated above, the current behavior is that even though we want and expect to be able to universally reference reverse within an entire cluster, the bundle instead registers N different (N = Number of Workers that Client Must Choose:
Client Need Not Choose:
In previous attempts, the closest I could get was a This is a gaping limitation to utilizing Gearman to its full potential, which in my eyes is as a "massively distributed operating system". Or as @joestump (creator of Net_Gearman, and who utilized Gearman at Digg, is oft quoted of thinking of Gearman as ...
This seemingly subtle naming nuance can lead to extremely adverse effects within real-world Gearman clusters. The situation get amplified when incorporating more languages or even when using the Since the simplest scenario cannot be reproduced (the global reverse function), and all code predicates from that, I'm likening this to installing the roof of my house in an unbeknownst to me, flawed way, which could lead to leaks (headaches) in the future: If I lived in a dry environment I'm probably ok, but when it rains, sometimes there's some drip-drip, but I don't know why. If I lived in a wet climate I see the drip-drip more often and water starts seeping through my walls. If I were in the wettest of climates (Nepal in monsoon season watch out!!!), my entire house would be destroyed directly due to water damage, but indirectly due to the roof. Anyone who's ever worked on a house knows how a leaky roof can be devastatingly difficult problem to diagnose and fix and can lead to significant headache and damage! 😅 If anyone knows a way around these points/issues please share. 🍻 Proposed Action Items:
/cc @pinkeen @wildpascal |
Is it possible to define the callable name of a job per annotation?
We don´t want so long names for our queues especially we want to remove the "~" sign out of the name.
The text was updated successfully, but these errors were encountered: