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

Add support for custom query prerequisite logic #16073

Merged
merged 2 commits into from May 25, 2021

Commits on May 24, 2021

  1. Add new query state WAITING_FOR_PREREQUISITES

    This new query state will support adding custom logic to wait for
    admin defined prerequistes to finish before a query can start.
    
    This commit just introduces the new state and the actual custom
    prerequisite functionality will be added in a subsequent commit.
    mayankgarg1990 committed May 24, 2021
    Copy the full SHA
    165e0ea View commit details
    Browse the repository at this point in the history
  2. Add support to introduce custom prerequisite waiting logic

    Implement mechanism to allow for custom logic to be plugged in to make queries to wait
    till the time all of the needed prerequisites for a query have been satisfied.
    
    Admins can decide to plugin their custom prerequisite logic by implementing the
    `QueryPrerequisites` interface and injecting that by implementing the factory interface
    `QueryPrerequisitesFactory` and exposing it through a `Plugin`. If this is not needed,
    no action is required since a default no-op implementation will be loaded.
    mayankgarg1990 committed May 24, 2021
    Copy the full SHA
    d8f3afb View commit details
    Browse the repository at this point in the history