Skip to content

feat: add ownership to Task #15453

@flaneur2020

Description

@flaneur2020

Summary

to query the task histories, we need ask cloudcontrol rpc service.

there're two possible ways:

  1. maintain the ownership in the cloudcontrol rpc service while the ownership get changed

    whenever GRANT OWNERSHIP to another role in databend, we can also tell the change about task ownership cloudcontrol rpc service by a seperated rpc call likes alter_task_ownership() or alter_task().

    thus we can query the task history by passing the current effective roles on the rpc get_task_histories.

  2. not maintain the ownership in the cloudcontrol service

    on querying the task histories, databend-query can get ALL the task ids by its own metadata storage about ownerships, then it can pass a task_ids to get_task_histories to filter out the needed task histories.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions