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
Extended djhuey to support multiple huey instances #230
Conversation
Wow, this is quite clean. Thanks. I will review this as soon as I can with an eye towards getting it merged into master. |
Great work! Best Wishes |
@winkidney All the old configurations are still working with this pull request. It only adds a new way to use several huey instances. Thus it is not a breaking change. |
@Sebubu Sorry I missed it. It helps a lot : ) |
This commit above fixes a bug in djhuey which always started the consumer with one thread. |
Looks awesome @Sebubu 🍺 |
Yes! It does! I'm sorry I have been so flakey about going over this. Thanks for your patience. |
@Sebubu Is it stable? We are looking forward this PR)) |
It looks amazing! @coleifer Could you please answer, are you planning to merge it into master? |
Apologies for the slowness... Could you rebase into a single commit, remove all "stylistic" (i.e. newlines/whitespace) changes, and resolve conflicts? When that's done I'm happy to review. |
I can make that. I'm currently busy in another project but I try to do that till the 24. february. Maybe I need your help briefly @coleifer in order to fix one test which didn't run the last time and I had no clue why. |
Thanks @Sebubu - I'm sorry for letting this sit idle and accumulate conflicts. I'm happy to help with failing tests once you submit a clean/rebased patch. |
Added testing env for djhuey added ConfigurationReaders added default configuration added DjangoHuey refactored readers further refactorings added argument to run_huey added queue parameter for run_huey updated docs added title to docs removed print Update django.rst fixed run_huey bug added check if huey is in settings some adjustments install test_requirements.txt in travis ci added python2.7 compatibality fixed threading bug
# Conflicts: # docs/django.rst # huey/contrib/djhuey/__init__.py # huey/contrib/djhuey/management/commands/run_huey.py # runtests.py
after some more digging I found the culprit. The problem was that the django test runner also tried running all non django tests and failed. now that i configured the django runner only to discover djhuey test it works. |
Very cool, will give it a review so we can get this merged. |
Looks good. A few small things here and there, but I can clean them up after merging. Thanks! |
Clean-ups: cfdc87c |
@MarcoGlauser / @Sebubu -- are you all running this in production with the new queue option? There have been a couple brain-dead bugs that I think would've cropped up if you all were using this:
I don't want to revert this, but am concerned about the stability of the changes that were introduced...especially given the types of issues people are encountering. |
I've decided to roll this patch back and have pushed a new release, 1.9.0. I apologize for the inconvenience this may cause you all, but I can't maintain a patch that has bugs like the two that were reported. If you want to re-submit a clean patch that addresses the reported issues and includes a more robust test-suite, I'll be happy to bring this functionality back. |
Heey guys
We use huey with django in our production system and we need independent huey instances to process different tasks. Unfortunately the huey django plugin only supported one huey instance so I reworked the django plugin (djhuey).
What changed
Configuration example
The old configuration style is still valid. It only doesn't support multiple huey instances.
run_huey example
Define task example
We currently use my huey branch in our production system and it is thus already quiet mature.
Don't hesitate to contact me for small changes.