Skip to content
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

need to remove call to command rebuild_index in tasks.py #11920

Open
cesarbenjamindotnet opened this issue Feb 2, 2024 · 1 comment · May be fixed by #11921
Open

need to remove call to command rebuild_index in tasks.py #11920

cesarbenjamindotnet opened this issue Feb 2, 2024 · 1 comment · May be fixed by #11921

Comments

@cesarbenjamindotnet
Copy link

Expected Behavior

....
migrations tasks done

Actual Behavior

when tasks.py is called, after the execution of manage.py in function migrations() there is a try block that use command rebuild_index, this returns the message 'Type "manage.py help' for usage.", i found that this is a haystack command, but haystack was removed after the add of django 4.2 support

Steps to Reproduce the Problem

when run the whole tasks.py, at the migrations() call, it thows that message.

Specifications

  • GeoNode version: @master

  • Installation type (vanilla, geonode-project): geonode-project

  • Installation method (manual, docker): docker

  • Platform: ubuntu 22.04

  • Additional details: at line 328 need to remove this:

    try:
    ctx.run(
    f"python manage.py rebuild_index --noinput --settings={_localsettings()}",
    pty=True,
    )
    except Exception:
    pass

@cesarbenjamindotnet
Copy link
Author

please, if haystack was removed in master, that try catch is not needed, and this causes an exception

@giohappy giohappy linked a pull request Mar 25, 2024 that will close this issue
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant