-
Notifications
You must be signed in to change notification settings - Fork 67
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
Allow jobs that are immediately ready-to-run to skip the promote cycle. #22
Comments
One slightly tricky thing here is that some of the methods impacted can work on multiple jobs simultaneously. So some jobs may be ready and others not...
|
Maybe you could add |
Hm, but |
Try out the |
OK, but it is doing one more query? I don't think this is a too big issue. |
Yes, it's doing another update, but restricted to the id(s) involved in the invoking method, which should make it much faster than the full query used when promote polls. |
I like it. Thanks! |
This is quick now! Especially with my observe-based worker. :-) Now I just have to see what happens when there are dependencies between documents. Do I have to wait for promote to discover that, or does it set |
Dependencies are resolved by |
But this would be easy to add, no? Using the same technique, calling |
This has been committed on the |
merged into master |
See: #15 (comment)
The text was updated successfully, but these errors were encountered: