Hi Alexei, Correct. I am running python manage.py celery start from within [my_project] folder, as per docs <https://arches.readthedocs.io/en/stable/task-management/?highlight=celery#running-celery>, which results in the Error: Unable to load celery application. The module [ my settings.ELASTICSEARCH_PREFIX ] was not found. My project folder structure is standard -- no renaming of anything.
Thanks, Angela On Tuesday, January 26, 2021 at 3:44:15 PM UTC-5 Alexei Peters wrote: > Hi Angela, > I assume that you're running the "python manage.py celery start" > command from your project and not from the root of the Arches code base > correct? > The command also assumes that you haven't rename your folders in your > project directory. > -Alexei > > Director of Web Development - Farallon Geographics, Inc. - 971.227.3173 > <(971)%20227-3173> > > > On Mon, Jan 25, 2021 at 11:35 AM Angela Labrador <[email protected]> wrote: > >> Hi Lindsay, >> >> Thanks for checking in -- no, I haven't really solved it. I've got a >> workaround, but would appreciate any ideas or explanations so I can >> understand how celery is supposed to be configured (or so that we can >> update the docs if they need to be edited). >> >> Angela >> >> >> On Tuesday, January 19, 2021 at 7:48:47 PM UTC-5 Lindsey Gant wrote: >> >>> Hi Angela, >>> >>> Were you able to find a solution to your celery error? If not, let me >>> see if someone in the group can follow up. >>> >>> Thanks, >>> >>> Lindsey >>> GCI Arches Project Team >>> >>> On Thursday, January 14, 2021 at 2:30:56 PM UTC-8 [email protected] >>> wrote: >>> >>>> Hello all, >>>> >>>> I'm testing an upgrade to Arches 5.1 and have hit a stumbling block >>>> with trying to get celery running. I've followed the directions on the >>>> doc >>>> <https://arches.readthedocs.io/en/stable/task-management/?highlight=celery#running-celery>, >>>> >>>> and have RabbitMQ installed and my settings.py file updated. I did not >>>> create a tasks.py file within my project folder because the docs imply >>>> this >>>> is only needed if I need to add additional tasks for my project (I just >>>> need the default Arches tasks). >>>> >>>> When I run python manage.py celery start from within my virtualenv, I >>>> get >>>> >>>> Error: >>>> Unable to load celery application. >>>> The module XXX was not found. >>>> >>>> where XXX = my settings.ELASTICSEARCH_PREFIX >>>> >>>> However, when I edit the celery.py management command to use >>>> cmd = f"celery -A *arches* worker -B -l info" >>>> instead of settings.ELASTICSEARCH_PREFIX, celery starts up and connects >>>> to rabbitmq. >>>> >>>> I'm wondering why that management command is using the ES prefix and >>>> what I could be missing in my own project config that is causing this. >>>> >>>> Thanks, >>>> Angela >>>> >>> -- >> -- To post, send email to [email protected]. To unsubscribe, >> send email to [email protected]. For more information, >> visit https://groups.google.com/d/forum/archesproject?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "Arches Project" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/archesproject/17891260-c650-469a-bdff-9e68f9b5b462n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/archesproject/17891260-c650-469a-bdff-9e68f9b5b462n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- -- To post, send email to [email protected]. To unsubscribe, send email to [email protected]. For more information, visit https://groups.google.com/d/forum/archesproject?hl=en --- You received this message because you are subscribed to the Google Groups "Arches Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/archesproject/4a95537c-db9b-4935-8144-37e930706511n%40googlegroups.com.
