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

Retry recreate_index subtasks on worker exit #1615

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

mbertrand
Copy link
Member

@mbertrand mbertrand commented Sep 27, 2024

What are the relevant tickets?

Closes https://github.com/mitodl/hq/issues/5615

Description (What does it do?)

Screenshots (if appropriate):

  • Desktop screenshots
  • Mobile width screenshots

How can this be tested?

Open 3 terminals:

  • Terminal 1: docker compose up
  • Terminal 2: when ready, ./manage.py recreate_index --all
  • Terminal 3: Once you start seeing a bunch of recreate_index subtasks running like index_contentfiles, run docker compose stop celery. Wait until you see that celery has exited in terminal 1. Then run docker compose up celery
  • Once celery has restarted, the recreate_index tasks should resume, and eventually the task in terminal 2 should complete successfully.

Additional Context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant