Skip to content

Add async execution support to the api-ui REST API #1854

Description

@YaroslavLitvinov

Since we implemented async execution earlier in this PR https://github.com/Embucket/embucket/pull/1637, and closed issue https://github.com/Embucket/embucket/issues/1609 we need to support it in UI as well.

Proposal

  • Change createQuery handler POST /ui/queries
    Add payload param: asyncExec to the , reflect changes in openapi spec.
    Keep existing functionality of sync execution when asyncExec=false,
    Run query asynchronously when asyncExec=true
  • Add for future use DELETE /ui/queries handler, aborts running query by query_id
    or it can be PATCH /ui/queries, expecting additional payload arg: abort=true/false

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions