-
Notifications
You must be signed in to change notification settings - Fork 5
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
Feature request: the ability to package and attach additional files to gears function #15
Comments
@AlexMikhalev you can put your connector code on some local path on the same machine where Redis running and give this path as a requirement, RedisGears will find it there and install it in its virtual environment... |
But regardless I agree this is an important feature, but I think it should be supported as part of RedisGears and not gears-cli. |
@MeirShpilraien thank you for the suggestion, can you give a short example of your first suggestion?
Does it mean gears will pickup anything put into PythonHomeDir? |
@AlexMikhalev RedisGears creates a virtual environment for each shard and installs the given requirement there, Assuming you some python dependency under
You can also create a requirement file and put I agree this is not the best solution and we should allow just sending an archive that contains all the code, but this is a workaround for now. Let me know if you have any issues with this. |
@MeirShpilraien thank you, I will give it a try. At the moment I rewrite scripts to work differently - combined multiple gears into one script and use different filter/flatmap/map and another foreach. |
In the meantime I found an (interim) workaround:
will use STOP_WORDS without install of whole spacy. |
I have tried to build rather small NLP pipeline https://github.com/applied-knowledge-systems/the-pattern-platform and I struggle to improve code quality using standard python coding techniques. For example:
The text was updated successfully, but these errors were encountered: