github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/engine/proto/executor.proto (about)

     1  syntax = "proto3";
     2  
     3  package enginepb;
     4  
     5  import "engine/proto/projects.proto";
     6  
     7  option go_package = "github.com/pingcap/tiflow/engine/enginepb";
     8  
     9  service ExecutorService {
    10      rpc PreDispatchTask(PreDispatchTaskRequest) returns (PreDispatchTaskResponse) {}
    11      rpc ConfirmDispatchTask(ConfirmDispatchTaskRequest) returns (ConfirmDispatchTaskResponse) {}
    12  }
    13  
    14  message PreDispatchTaskRequest {
    15      int64 task_type_id = 1;
    16      bytes task_config = 2;
    17      string master_id = 3;
    18      string worker_id = 4;
    19      ProjectInfo project_info = 5;
    20      
    21      // request_id should be a UUID unique for each RPC call.
    22      string request_id = 6;
    23      int64 worker_epoch = 7;
    24  }
    25  
    26  message PreDispatchTaskResponse {
    27  }
    28  
    29  message ConfirmDispatchTaskRequest {
    30      // Note: worker_id and request_id must match the
    31      // corresponding fields in PreDispatchTaskRequest.
    32  
    33      string worker_id = 1;
    34      string request_id = 2;
    35  }
    36  
    37  message ConfirmDispatchTaskResponse {
    38  }
    39  
    40  service BrokerService {
    41      rpc RemoveResource(RemoveLocalResourceRequest) returns (RemoveLocalResourceResponse){}
    42  }
    43  
    44  message RemoveLocalResourceRequest {
    45      string resource_id = 1;
    46      // creator of the resource
    47      string worker_id = 2;
    48  }
    49  
    50  message RemoveLocalResourceResponse {}