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

refactor: separate key and value: add BackgroundTaskCreator #15063

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

drmingdrmer
Copy link
Member

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

refactor: add BackgroundTaskCreator

BackgroundJobIdent is a kvapi::Key but not a value.
It does not need to be serde.
Thus in this commit we create another struct BackgroundTaskCreator
with the same structure as BackgroundJobIdent for usage in values.

And remove serde declaration from BackgroundJobIdent.

Tests

  • Unit Test
  • Logic Test
  • Benchmark Test
  • No Test - Explain why

Type of change

  • Refactoring

Related Issues

@github-actions github-actions bot added the pr-refactor this PR changes the code base without new features or bugfix label Mar 21, 2024
`BackgroundJobIdent` is a kvapi::Key but not a value.
It does not need to be `serde`.
Thus in this commit we create another struct `BackgroundTaskCreator`
with the same structure as `BackgroundJobIdent` for usage in values.

And remove `serde` declaration from `BackgroundJobIdent`.

- Part of databendlabs#14719
@drmingdrmer drmingdrmer marked this pull request as ready for review March 22, 2024 01:51
@drmingdrmer drmingdrmer changed the title refactor: add BackgroundTaskCreator refactor: separate key and value: add BackgroundTaskCreator Mar 22, 2024
@drmingdrmer drmingdrmer merged commit 6485d5c into databendlabs:main Mar 22, 2024
78 checks passed
@drmingdrmer drmingdrmer deleted the 23-bg-job-ident branch March 22, 2024 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-refactor this PR changes the code base without new features or bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants