-
-
Notifications
You must be signed in to change notification settings - Fork 603
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
Add background command to download complete ingredient list #1862
Comments
Hello, I would like to work on this if it's still available? |
Hi @crypto-a ! Sure, go ahead (If you have questions, need help to setup everything, or anything feel free to ping me) |
@rolandgeider Thank you. I’ve completed the code, but I’m encountering some issues with testing. When I try to run the command directly, I get an error related to the function I’m calling. This indicates that the function is being invoked, but the code isn’t working as expected for me. Do you have any advice on how I might resolve this? I suspect there might be an issue with |
yes, sounds like it, how did you setup the dev environment? If you installed django etc in a venv, you need to start celery manually as well: |
@rolandgeider Thanks for your help! |
At the moment the command
python3 manage.py sync-ingredients
will download all ingridients from another wger instance, but this proces takes a looooooong time (several hours). We already have a version of this that runs on a celery queue every x months (sync_all_ingredients_task
), but it would be really helpful if we could start this process manually with a mangement commandpython3 manage.py sync-ingredients-async
The text was updated successfully, but these errors were encountered: