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

Make pending_jobs fetch jobs by job types #1847

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

wangch079
Copy link
Member

Part of https://github.com/elastic/enterprise-search-team/issues/5193

Make the pending_jobs method of SyncJobIndex to be able to fetch pending jobs by job type. This is to prepare for the PR Break JobExecutionSerivce to ContentSyncJobExecutionService and AccessControlSyncJobExecutionService.

Checklists

Pre-Review Checklist

  • this PR has a meaningful title
  • this PR links to all relevant github issues that it fixes or partially addresses
  • this PR has a thorough description
  • Covered the changes with automated tests
  • Tested the changes locally
  • Added a label for each target release version (example: v7.13.2, v7.14.0, v8.0.0)

@wangch079 wangch079 requested a review from a team October 26, 2023 18:19
@wangch079 wangch079 changed the base branch from main to chenhui/job-execution-service-concurrency October 26, 2023 18:19
@wangch079 wangch079 changed the title Make pending_jobs to fetch jobs by job types Make pending_jobs fetch jobs by job types Oct 26, 2023
@wangch079
Copy link
Member Author

Do you think this can be merged to main directly?

jedrazb
jedrazb previously approved these changes Oct 27, 2023
Copy link
Member

@jedrazb jedrazb left a comment

Choose a reason for hiding this comment

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

LGTM

@jedrazb
Copy link
Member

jedrazb commented Oct 27, 2023

Do you think this can be merged to main directly?

Since it won't change output of pending_jobs func I think it can be safely merged to main

@wangch079 wangch079 changed the base branch from chenhui/job-execution-service-concurrency to main October 27, 2023 12:33
@wangch079 wangch079 dismissed jedrazb’s stale review October 27, 2023 12:33

The base branch was changed.

@wangch079 wangch079 force-pushed the chenhui/fetch-pending-jobs-by-job-types branch from e5d50e8 to 9acfde3 Compare October 27, 2023 12:34
@wangch079 wangch079 requested review from a team and jedrazb October 27, 2023 12:34
@wangch079 wangch079 merged commit 436e855 into main Oct 27, 2023
@wangch079 wangch079 deleted the chenhui/fetch-pending-jobs-by-job-types branch October 27, 2023 13:46
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.

2 participants