Skip to content

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

Merged
kirkrodrigues merged 15 commits into
y-scope:mainfrom
haiqi96:RenameSearchJobs
Jun 18, 2024
Merged

package: Rename "search" to "query" in search-cluster related variables to prepare for additional job types. #449
kirkrodrigues merged 15 commits into
y-scope:mainfrom
haiqi96:RenameSearchJobs

Conversation

@haiqi96

@haiqi96 haiqi96 commented Jun 17, 2024

Copy link
Copy Markdown
Contributor

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

@kirkrodrigues kirkrodrigues left a comment

Copy link
Copy Markdown
Member

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
@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.
junhaoliao pushed a commit to junhaoliao/clp that referenced this pull request May 17, 2026
…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