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

package: Rename "search" to "query" in search-cluster related variables to prepare for additional job types. #449

Merged
merged 15 commits into from
Jun 18, 2024

Conversation

haiqi96
Copy link
Contributor

@haiqi96 haiqi96 commented Jun 17, 2024

Description

This change renames search worker/scheduler to be query worker/scheduler. We plan to let the current search worker handles more types of task (instead of only search). This PR servers as a preparation for our later change.

Most of the changes in this PR are simply replacing "search" with "query", except for the following:

  1. Rename the table in the database, and renamed "search_config" to be "job_config"
  2. Created a QueryJob as base class at https://github.com/y-scope/clp/pull/449/files#diff-4f04a37f8a0f11e848dcc0a158d89fa4b278ebce350250f08cb46b7f66cf091bL38. which will serve as the base class for different type of jobs run by the query worker

Validation performed

rebuilt package. Confirmed that search worked in both commandline and webui.

@haiqi96 haiqi96 requested a review from kirkrodrigues June 17, 2024 21:09
Copy link
Member

@kirkrodrigues kirkrodrigues left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the PR title and commit body, how about:

package: Rename "search" to "query" in search-cluster related variables to prepare for additional job types:

  • Rename search scheduler/worker/job/task to query scheduler/worker/job/task where appropriate.
  • Rename search_config to job_config in metadata DB.
  • Add QueryJob base class for SearchJob.

@haiqi96 haiqi96 changed the title package: Rename search worker/scheduler as query worker/scheduler package: Rename "search" to "query" in search-cluster related variables to prepare for additional job types. Jun 18, 2024
@haiqi96 haiqi96 requested a review from kirkrodrigues June 18, 2024 15:38
@kirkrodrigues kirkrodrigues merged commit 92ba15a into y-scope:main Jun 18, 2024
11 checks passed
@haiqi96 haiqi96 deleted the RenameSearchJobs branch June 28, 2024 14:43
jackluo923 pushed a commit to jackluo923/clp that referenced this pull request Dec 4, 2024
…es to prepare for additional job types: (y-scope#449)

- Rename search scheduler/worker/job/task to query scheduler/worker/job/task where appropriate.
- Rename search_config to job_config in metadata DB.
- Add QueryJob base class for SearchJob.
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 this pull request may close these issues.

2 participants