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

IndexJob model #1696

Open
lukavdplas opened this issue Nov 8, 2024 · 0 comments · May be fixed by #1699
Open

IndexJob model #1696

lukavdplas opened this issue Nov 8, 2024 · 0 comments · May be fixed by #1699
Assignees
Labels
backend changes to the django backend

Comments

@lukavdplas
Copy link
Contributor

This is part of #1007 - building a system to handle indexing without a command line.

Beside representing the actual index (#1695), it will be useful to keep track of index-related actions. We can create an IndexJob model for this, which represents any kind of "job" related to indices. Functions:

  • Keep a log of indexing tasks. Useful when you have multiple developers and multiple projects on the same server - which we do.
  • Allow planning, viewing, and starting jobs through the admin site.
  • Retain data so index jobs can be queued, report on their progress, etc.

The actual contents of the job can be broken up into related IndexTask objects, e.g. CreateIndexTask, PopulateIndexTask, AddAliasTask, etc. To run a job, you run each of the tasks related to it.

Goals for this issue:

  • Create IndexJob models (and related task models).
  • When indexing from the command line, save an IndexJob to log the action.
  • Show the IndexJob as read-only in the admin site.
@lukavdplas lukavdplas added the backend changes to the django backend label Nov 8, 2024
@lukavdplas lukavdplas self-assigned this Nov 14, 2024
@lukavdplas lukavdplas linked a pull request Nov 15, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend changes to the django backend
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant