Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

feat(proto): task run pg session (#12843)

p0ny05740d2ba0c4
diff --git a/frontend/src/types/proto/v1/rollout_service.ts b/frontend/src/types/proto/v1/rollout_service.ts
index 261a101e1c..be692ca1e1 100644
--- a/frontend/src/types/proto/v1/rollout_service.ts
+++ b/frontend/src/types/proto/v1/rollout_service.ts
@@ -942,6 +942,38 @@ export function taskRunLogEntry_TransactionControl_TypeToNumber(
}
}
+export interface GetTaskRunSessionRequest {
+ /** Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} */
+ parent: string;
+}
+
+export interface TaskRunSession {
+ /** Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/session */
+ name: string;
+ postgres?: TaskRunSession_Postgres | undefined;
+}
+
+export interface TaskRunSession_Postgres {
+ sessions: TaskRunSession_Postgres_Session[];
+}
+
+/** Read from `pg_stat_activity` */
+export interface TaskRunSession_Postgres_Session {
+ pid: string;
+ query: string;
+ state?: string | undefined;
+ waitEventType?: string | undefined;
+ waitEvent?: string | undefined;
+ datname?: string | undefined;
+ usename?: string | undefined;
+ applicationName: string;
+ clientAddr?: string | undefined;
+ clientPort?: string | undefined;
+ backendStart: Date | undefined;
+ xactStart?: Date | undefined;
+ queryStart?: Date | undefined;
+}
+
function createBaseBatchRunTasksRequest(): BatchRunTasksRequest {
return { parent: "", tasks: [], reason: "" };
}
@@ -4129,6 +4161,453 @@ export const TaskRunLogEntry_TransactionControl = {
},
};
+function createBaseGetTaskRunSessionRequest(): GetTaskRunSessionRequest {
+ return { parent: "" };
+}
+
+export const GetTaskRunSessionRequest = {
+ encode(message: GetTaskRunSessionRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.parent !== "") {
+ writer.uint32(10).string(message.parent);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): GetTaskRunSessionRequest {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseGetTaskRunSessionRequest();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.parent = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): GetTaskRunSessionRequest {
+ return { parent: isSet(object.parent) ? globalThis.String(object.parent) : "" };
+ },
+
+ toJSON(message: GetTaskRunSessionRequest): unknown {
+ const obj: any = {};
+ if (message.parent !== "") {
+ obj.parent = message.parent;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<GetTaskRunSessionRequest>): GetTaskRunSessionRequest {
+ return GetTaskRunSessionRequest.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<GetTaskRunSessionRequest>): GetTaskRunSessionRequest {
+ const message = createBaseGetTaskRunSessionRequest();
+ message.parent = object.parent ?? "";
+ return message;
+ },
+};
+
+function createBaseTaskRunSession(): TaskRunSession {
+ return { name: "", postgres: undefined };
+}
+
+export const TaskRunSession = {
+ encode(message: TaskRunSession, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ if (message.postgres !== undefined) {
+ TaskRunSession_Postgres.encode(message.postgres, writer.uint32(18).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): TaskRunSession {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseTaskRunSession();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.postgres = TaskRunSession_Postgres.decode(reader, reader.uint32());
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): TaskRunSession {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ postgres: isSet(object.postgres) ? TaskRunSession_Postgres.fromJSON(object.postgres) : undefined,
+ };
+ },
+
+ toJSON(message: TaskRunSession): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.postgres !== undefined) {
+ obj.postgres = TaskRunSession_Postgres.toJSON(message.postgres);
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<TaskRunSession>): TaskRunSession {
+ return TaskRunSession.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<TaskRunSession>): TaskRunSession {
+ const message = createBaseTaskRunSession();
+ message.name = object.name ?? "";
+ message.postgres = (object.postgres !== undefined && object.postgres !== null)
+ ? TaskRunSession_Postgres.fromPartial(object.postgres)
+ : undefined;
+ return message;
+ },
+};
+
+function createBaseTaskRunSession_Postgres(): TaskRunSession_Postgres {
+ return { sessions: [] };
+}
+
+export const TaskRunSession_Postgres = {
+ encode(message: TaskRunSession_Postgres, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ for (const v of message.sessions) {
+ TaskRunSession_Postgres_Session.encode(v!, writer.uint32(10).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): TaskRunSession_Postgres {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseTaskRunSession_Postgres();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.sessions.push(TaskRunSession_Postgres_Session.decode(reader, reader.uint32()));
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): TaskRunSession_Postgres {
+ return {
+ sessions: globalThis.Array.isArray(object?.sessions)
+ ? object.sessions.map((e: any) => TaskRunSession_Postgres_Session.fromJSON(e))
+ : [],
+ };
+ },
+
+ toJSON(message: TaskRunSession_Postgres): unknown {
+ const obj: any = {};
+ if (message.sessions?.length) {
+ obj.sessions = message.sessions.map((e) => TaskRunSession_Postgres_Session.toJSON(e));
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<TaskRunSession_Postgres>): TaskRunSession_Postgres {
+ return TaskRunSession_Postgres.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<TaskRunSession_Postgres>): TaskRunSession_Postgres {
+ const message = createBaseTaskRunSession_Postgres();
+ message.sessions = object.sessions?.map((e) => TaskRunSession_Postgres_Session.fromPartial(e)) || [];
+ return message;
+ },
+};
+
+function createBaseTaskRunSession_Postgres_Session(): TaskRunSession_Postgres_Session {
+ return {
+ pid: "",
+ query: "",
+ state: undefined,
+ waitEventType: undefined,
+ waitEvent: undefined,
+ datname: undefined,
+ usename: undefined,
+ applicationName: "",
+ clientAddr: undefined,
+ clientPort: undefined,
+ backendStart: undefined,
+ xactStart: undefined,
+ queryStart: undefined,
+ };
+}
+
+export const TaskRunSession_Postgres_Session = {
+ encode(message: TaskRunSession_Postgres_Session, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.pid !== "") {
+ writer.uint32(10).string(message.pid);
+ }
+ if (message.query !== "") {
+ writer.uint32(18).string(message.query);
+ }
+ if (message.state !== undefined) {
+ writer.uint32(26).string(message.state);
+ }
+ if (message.waitEventType !== undefined) {
+ writer.uint32(34).string(message.waitEventType);
+ }
+ if (message.waitEvent !== undefined) {
+ writer.uint32(42).string(message.waitEvent);
+ }
+ if (message.datname !== undefined) {
+ writer.uint32(50).string(message.datname);
+ }
+ if (message.usename !== undefined) {
+ writer.uint32(58).string(message.usename);
+ }
+ if (message.applicationName !== "") {
+ writer.uint32(66).string(message.applicationName);
+ }
+ if (message.clientAddr !== undefined) {
+ writer.uint32(74).string(message.clientAddr);
+ }
+ if (message.clientPort !== undefined) {
+ writer.uint32(82).string(message.clientPort);
+ }
+ if (message.backendStart !== undefined) {
+ Timestamp.encode(toTimestamp(message.backendStart), writer.uint32(90).fork()).ldelim();
+ }
+ if (message.xactStart !== undefined) {
+ Timestamp.encode(toTimestamp(message.xactStart), writer.uint32(98).fork()).ldelim();
+ }
+ if (message.queryStart !== undefined) {
+ Timestamp.encode(toTimestamp(message.queryStart), writer.uint32(106).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): TaskRunSession_Postgres_Session {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseTaskRunSession_Postgres_Session();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.pid = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.query = reader.string();
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.state = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.waitEventType = reader.string();
+ continue;
+ case 5:
+ if (tag !== 42) {
+ break;
+ }
+
+ message.waitEvent = reader.string();
+ continue;
+ case 6:
+ if (tag !== 50) {
+ break;
+ }
+
+ message.datname = reader.string();
+ continue;
+ case 7:
+ if (tag !== 58) {
+ break;
+ }
+
+ message.usename = reader.string();
+ continue;
+ case 8:
+ if (tag !== 66) {
+ break;
+ }
+
+ message.applicationName = reader.string();
+ continue;
+ case 9:
+ if (tag !== 74) {
+ break;
+ }
+
+ message.clientAddr = reader.string();
+ continue;
+ case 10:
+ if (tag !== 82) {
+ break;
+ }
+
+ message.clientPort = reader.string();
+ continue;
+ case 11:
+ if (tag !== 90) {
+ break;
+ }
+
+ message.backendStart = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
+ continue;
+ case 12:
+ if (tag !== 98) {
+ break;
+ }
+
+ message.xactStart = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
+ continue;
+ case 13:
+ if (tag !== 106) {
+ break;
+ }
+
+ message.queryStart = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): TaskRunSession_Postgres_Session {
+ return {
+ pid: isSet(object.pid) ? globalThis.String(object.pid) : "",
+ query: isSet(object.query) ? globalThis.String(object.query) : "",
+ state: isSet(object.state) ? globalThis.String(object.state) : undefined,
+ waitEventType: isSet(object.waitEventType) ? globalThis.String(object.waitEventType) : undefined,
+ waitEvent: isSet(object.waitEvent) ? globalThis.String(object.waitEvent) : undefined,
+ datname: isSet(object.datname) ? globalThis.String(object.datname) : undefined,
+ usename: isSet(object.usename) ? globalThis.String(object.usename) : undefined,
+ applicationName: isSet(object.applicationName) ? globalThis.String(object.applicationName) : "",
+ clientAddr: isSet(object.clientAddr) ? globalThis.String(object.clientAddr) : undefined,
+ clientPort: isSet(object.clientPort) ? globalThis.String(object.clientPort) : undefined,
+ backendStart: isSet(object.backendStart) ? fromJsonTimestamp(object.backendStart) : undefined,
+ xactStart: isSet(object.xactStart) ? fromJsonTimestamp(object.xactStart) : undefined,
+ queryStart: isSet(object.queryStart) ? fromJsonTimestamp(object.queryStart) : undefined,
+ };
+ },
+
+ toJSON(message: TaskRunSession_Postgres_Session): unknown {
+ const obj: any = {};
+ if (message.pid !== "") {
+ obj.pid = message.pid;
+ }
+ if (message.query !== "") {
+ obj.query = message.query;
+ }
+ if (message.state !== undefined) {
+ obj.state = message.state;
+ }
+ if (message.waitEventType !== undefined) {
+ obj.waitEventType = message.waitEventType;
+ }
+ if (message.waitEvent !== undefined) {
+ obj.waitEvent = message.waitEvent;
+ }
+ if (message.datname !== undefined) {
+ obj.datname = message.datname;
+ }
+ if (message.usename !== undefined) {
+ obj.usename = message.usename;
+ }
+ if (message.applicationName !== "") {
+ obj.applicationName = message.applicationName;
+ }
+ if (message.clientAddr !== undefined) {
+ obj.clientAddr = message.clientAddr;
+ }
+ if (message.clientPort !== undefined) {
+ obj.clientPort = message.clientPort;
+ }
+ if (message.backendStart !== undefined) {
+ obj.backendStart = message.backendStart.toISOString();
+ }
+ if (message.xactStart !== undefined) {
+ obj.xactStart = message.xactStart.toISOString();
+ }
+ if (message.queryStart !== undefined) {
+ obj.queryStart = message.queryStart.toISOString();
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<TaskRunSession_Postgres_Session>): TaskRunSession_Postgres_Session {
+ return TaskRunSession_Postgres_Session.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<TaskRunSession_Postgres_Session>): TaskRunSession_Postgres_Session {
+ const message = createBaseTaskRunSession_Postgres_Session();
+ message.pid = object.pid ?? "";
+ message.query = object.query ?? "";
+ message.state = object.state ?? undefined;
+ message.waitEventType = object.waitEventType ?? undefined;
+ message.waitEvent = object.waitEvent ?? undefined;
+ message.datname = object.datname ?? undefined;
+ message.usename = object.usename ?? undefined;
+ message.applicationName = object.applicationName ?? "";
+ message.clientAddr = object.clientAddr ?? undefined;
+ message.clientPort = object.clientPort ?? undefined;
+ message.backendStart = object.backendStart ?? undefined;
+ message.xactStart = object.xactStart ?? undefined;
+ message.queryStart = object.queryStart ?? undefined;
+ return message;
+ },
+};
+
export type RolloutServiceDefinition = typeof RolloutServiceDefinition;
export const RolloutServiceDefinition = {
name: "RolloutService",
@@ -4470,6 +4949,95 @@ export const RolloutServiceDefinition = {
},
},
},
+ getTaskRunSession: {
+ name: "GetTaskRunSession",
+ requestType: GetTaskRunSessionRequest,
+ requestStream: false,
+ responseType: TaskRunSession,
+ responseStream: false,
+ options: {
+ _unknownFields: {
+ 8410: [new Uint8Array([6, 112, 97, 114, 101, 110, 116])],
+ 578365826: [
+ new Uint8Array([
+ 72,
+ 18,
+ 70,
+ 47,
+ 118,
+ 49,
+ 47,
+ 123,
+ 112,
+ 97,
+ 114,
+ 101,
+ 110,
+ 116,
+ 61,
+ 112,
+ 114,
+ 111,
+ 106,
+ 101,
+ 99,
+ 116,
+ 115,
+ 47,
+ 42,
+ 47,
+ 114,
+ 111,
+ 108,
+ 108,
+ 111,
+ 117,
+ 116,
+ 115,
+ 47,
+ 42,
+ 47,
+ 115,
+ 116,
+ 97,
+ 103,
+ 101,
+ 115,
+ 47,
+ 42,
+ 47,
+ 116,
+ 97,
+ 115,
+ 107,
+ 115,
+ 47,
+ 42,
+ 47,
+ 116,
+ 97,
+ 115,
+ 107,
+ 82,
+ 117,
+ 110,
+ 115,
+ 47,
+ 42,
+ 125,
+ 47,
+ 115,
+ 101,
+ 115,
+ 115,
+ 105,
+ 111,
+ 110,
+ ]),
+ ],
+ },
+ },
+ },
batchRunTasks: {
name: "BatchRunTasks",
requestType: BatchRunTasksRequest,
diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yaml
index c07ea6f0f0..2b3ff90ea8 100644
--- a/proto/gen/grpc-doc/openapi.yaml
+++ b/proto/gen/grpc-doc/openapi.yaml
@@ -5977,6 +5977,55 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Status'
+ /v1/projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/session:
+ get:
+ tags:
+ - RolloutService
+ operationId: RolloutService_GetTaskRunSession
+ parameters:
+ - name: project
+ in: path
+ description: The project id.
+ required: true
+ schema:
+ type: string
+ - name: rollout
+ in: path
+ description: The rollout id.
+ required: true
+ schema:
+ type: string
+ - name: stage
+ in: path
+ description: The stage id.
+ required: true
+ schema:
+ type: string
+ - name: task
+ in: path
+ description: The task id.
+ required: true
+ schema:
+ type: string
+ - name: taskRun
+ in: path
+ description: The taskRun id.
+ required: true
+ schema:
+ type: string
+ responses:
+ "200":
+ description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/TaskRunSession'
+ default:
+ description: Default error response
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Status'
/v1/projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns:batchCancel:
post:
tags:
@@ -11764,6 +11813,39 @@ components:
column:
type: integer
format: int32
+ Postgres_Session:
+ type: object
+ properties:
+ pid:
+ type: string
+ query:
+ type: string
+ state:
+ type: string
+ waitEventType:
+ type: string
+ waitEvent:
+ type: string
+ datname:
+ type: string
+ usename:
+ type: string
+ applicationName:
+ type: string
+ clientAddr:
+ type: string
+ clientPort:
+ type: string
+ backendStart:
+ type: string
+ format: date-time
+ xactStart:
+ type: string
+ format: date-time
+ queryStart:
+ type: string
+ format: date-time
+ description: Read from `pg_stat_activity`
PrettyRequest:
type: object
properties:
@@ -13634,6 +13716,21 @@ components:
format: enum
error:
type: string
+ TaskRunSession:
+ type: object
+ properties:
+ name:
+ type: string
+ description: 'Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/session'
+ postgres:
+ $ref: '#/components/schemas/TaskRunSession_Postgres'
+ TaskRunSession_Postgres:
+ type: object
+ properties:
+ sessions:
+ type: array
+ items:
+ $ref: '#/components/schemas/Postgres_Session'
TaskRun_ExecutionDetail:
type: object
properties:
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index e49cd7f726..12ba967622 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -487,6 +487,7 @@
- [CreateRolloutRequest](#bytebase-v1-CreateRolloutRequest)
- [GetRolloutRequest](#bytebase-v1-GetRolloutRequest)
- [GetTaskRunLogRequest](#bytebase-v1-GetTaskRunLogRequest)
+ - [GetTaskRunSessionRequest](#bytebase-v1-GetTaskRunSessionRequest)
- [ListTaskRunsRequest](#bytebase-v1-ListTaskRunsRequest)
- [ListTaskRunsResponse](#bytebase-v1-ListTaskRunsResponse)
- [PreviewRolloutRequest](#bytebase-v1-PreviewRolloutRequest)
@@ -510,6 +511,9 @@
- [TaskRunLogEntry.SchemaDump](#bytebase-v1-TaskRunLogEntry-SchemaDump)
- [TaskRunLogEntry.TaskRunStatusUpdate](#bytebase-v1-TaskRunLogEntry-TaskRunStatusUpdate)
- [TaskRunLogEntry.TransactionControl](#bytebase-v1-TaskRunLogEntry-TransactionControl)
+ - [TaskRunSession](#bytebase-v1-TaskRunSession)
+ - [TaskRunSession.Postgres](#bytebase-v1-TaskRunSession-Postgres)
+ - [TaskRunSession.Postgres.Session](#bytebase-v1-TaskRunSession-Postgres-Session)
- [Task.Status](#bytebase-v1-Task-Status)
- [Task.Type](#bytebase-v1-Task-Type)
@@ -8017,6 +8021,21 @@ When paginating, all other parameters provided to `ListRoles` must match the cal
+<a name="bytebase-v1-GetTaskRunSessionRequest"></a>
+
+### GetTaskRunSessionRequest
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| parent | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} |
+
+
+
+
+
+
<a name="bytebase-v1-ListTaskRunsRequest"></a>
### ListTaskRunsRequest
@@ -8435,6 +8454,64 @@ When paginating, all other parameters provided to `ListRolloutTaskRuns` must mat
+
+<a name="bytebase-v1-TaskRunSession"></a>
+
+### TaskRunSession
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/session |
+| postgres | [TaskRunSession.Postgres](#bytebase-v1-TaskRunSession-Postgres) | | |
+
+
+
+
+
+
+<a name="bytebase-v1-TaskRunSession-Postgres"></a>
+
+### TaskRunSession.Postgres
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| sessions | [TaskRunSession.Postgres.Session](#bytebase-v1-TaskRunSession-Postgres-Session) | repeated | |
+
+
+
+
+
+
+<a name="bytebase-v1-TaskRunSession-Postgres-Session"></a>
+
+### TaskRunSession.Postgres.Session
+Read from `pg_stat_activity`
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| pid | [string](#string) | | |
+| query | [string](#string) | | |
+| state | [string](#string) | optional | |
+| wait_event_type | [string](#string) | optional | |
+| wait_event | [string](#string) | optional | |
+| datname | [string](#string) | optional | |
+| usename | [string](#string) | optional | |
+| application_name | [string](#string) | | |
+| client_addr | [string](#string) | optional | |
+| client_port | [string](#string) | optional | |
+| backend_start | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |
+| xact_start | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | optional | |
+| query_start | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | optional | |
+
+
+
+
+
@@ -8578,6 +8655,7 @@ When paginating, all other parameters provided to `ListRolloutTaskRuns` must mat
| PreviewRollout | [PreviewRolloutRequest](#bytebase-v1-PreviewRolloutRequest) | [Rollout](#bytebase-v1-Rollout) | |
| ListTaskRuns | [ListTaskRunsRequest](#bytebase-v1-ListTaskRunsRequest) | [ListTaskRunsResponse](#bytebase-v1-ListTaskRunsResponse) | |
| GetTaskRunLog | [GetTaskRunLogRequest](#bytebase-v1-GetTaskRunLogRequest) | [TaskRunLog](#bytebase-v1-TaskRunLog) | |
+| GetTaskRunSession | [GetTaskRunSessionRequest](#bytebase-v1-GetTaskRunSessionRequest) | [TaskRunSession](#bytebase-v1-TaskRunSession) | |
| BatchRunTasks | [BatchRunTasksRequest](#bytebase-v1-BatchRunTasksRequest) | [BatchRunTasksResponse](#bytebase-v1-BatchRunTasksResponse) | |
| BatchSkipTasks | [BatchSkipTasksRequest](#bytebase-v1-BatchSkipTasksRequest) | [BatchSkipTasksResponse](#bytebase-v1-BatchSkipTasksResponse) | |
| BatchCancelTaskRuns | [BatchCancelTaskRunsRequest](#bytebase-v1-BatchCancelTaskRunsRequest) | [BatchCancelTaskRunsResponse](#bytebase-v1-BatchCancelTaskRunsResponse) | |
diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index bd7ca494bd..b47ac8ea36 100644
--- a/proto/gen/grpc-doc/v1/index.html
+++ b/proto/gen/grpc-doc/v1/index.html
@@ -2041,6 +2041,10 @@
<a href="#bytebase.v1.GetTaskRunLogRequest"><span class="badge">M</span>GetTaskRunLogRequest</a>
</li>
+ <li>
+ <a href="#bytebase.v1.GetTaskRunSessionRequest"><span class="badge">M</span>GetTaskRunSessionRequest</a>
+ </li>
+
<li>
<a href="#bytebase.v1.ListTaskRunsRequest"><span class="badge">M</span>ListTaskRunsRequest</a>
</li>
@@ -2133,6 +2137,18 @@
<a href="#bytebase.v1.TaskRunLogEntry.TransactionControl"><span class="badge">M</span>TaskRunLogEntry.TransactionControl</a>
</li>
+ <li>
+ <a href="#bytebase.v1.TaskRunSession"><span class="badge">M</span>TaskRunSession</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.v1.TaskRunSession.Postgres"><span class="badge">M</span>TaskRunSession.Postgres</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.v1.TaskRunSession.Postgres.Session"><span class="badge">M</span>TaskRunSession.Postgres.Session</a>
+ </li>
+
<li>
<a href="#bytebase.v1.Task.Status"><span class="badge">E</span>Task.Status</a>
@@ -22355,6 +22371,30 @@ Format: projects/{project}/rollouts/{rollout} </p></td>
+ <h3 id="bytebase.v1.GetTaskRunSessionRequest">GetTaskRunSessionRequest</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>parent</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
<h3 id="bytebase.v1.ListTaskRunsRequest">ListTaskRunsRequest</h3>
<p></p>
@@ -23432,6 +23472,169 @@ Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory
+ <h3 id="bytebase.v1.TaskRunSession">TaskRunSession</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/session </p></td>
+ </tr>
+
+ <tr>
+ <td>postgres</td>
+ <td><a href="#bytebase.v1.TaskRunSession.Postgres">TaskRunSession.Postgres</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.v1.TaskRunSession.Postgres">TaskRunSession.Postgres</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>sessions</td>
+ <td><a href="#bytebase.v1.TaskRunSession.Postgres.Session">TaskRunSession.Postgres.Session</a></td>
+ <td>repeated</td>
+ <td><p> </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.v1.TaskRunSession.Postgres.Session">TaskRunSession.Postgres.Session</h3>
+ <p>Read from `pg_stat_activity`</p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>pid</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>query</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>state</td>
+ <td><a href="#string">string</a></td>
+ <td>optional</td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>wait_event_type</td>
+ <td><a href="#string">string</a></td>
+ <td>optional</td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>wait_event</td>
+ <td><a href="#string">string</a></td>
+ <td>optional</td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>datname</td>
+ <td><a href="#string">string</a></td>
+ <td>optional</td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>usename</td>
+ <td><a href="#string">string</a></td>
+ <td>optional</td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>application_name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>client_addr</td>
+ <td><a href="#string">string</a></td>
+ <td>optional</td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>client_port</td>
+ <td><a href="#string">string</a></td>
+ <td>optional</td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>backend_start</td>
+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>xact_start</td>
+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
+ <td>optional</td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>query_start</td>
+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
+ <td>optional</td>
+ <td><p> </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
<h3 id="bytebase.v1.Task.Status">Task.Status</h3>
@@ -23833,6 +24036,13 @@ Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory
<td><p></p></td>
</tr>
+ <tr>
+ <td>GetTaskRunSession</td>
+ <td><a href="#bytebase.v1.GetTaskRunSessionRequest">GetTaskRunSessionRequest</a></td>
+ <td><a href="#bytebase.v1.TaskRunSession">TaskRunSession</a></td>
+ <td><p></p></td>
+ </tr>
+
<tr>
<td>BatchRunTasks</td>
<td><a href="#bytebase.v1.BatchRunTasksRequest">BatchRunTasksRequest</a></td>
@@ -23924,6 +24134,16 @@ Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory
+ <tr>
+ <td>GetTaskRunSession</td>
+ <td>GET</td>
+ <td>/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}/session</td>
+ <td></td>
+ </tr>
+
+
+
+
<tr>
<td>BatchRunTasks</td>
<td>POST</td>
diff --git a/proto/generated-go/v1/rollout_service.pb.go b/proto/generated-go/v1/rollout_service.pb.go
index a6ba9066f2..40028e13c2 100644
--- a/proto/generated-go/v1/rollout_service.pb.go
+++ b/proto/generated-go/v1/rollout_service.pb.go
@@ -1824,6 +1824,130 @@ func (x *TaskRunLogEntry) GetTransactionControl() *TaskRunLogEntry_TransactionCo
return nil
}
+type GetTaskRunSessionRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}
+ Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
+}
+
+func (x *GetTaskRunSessionRequest) Reset() {
+ *x = GetTaskRunSessionRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_rollout_service_proto_msgTypes[18]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *GetTaskRunSessionRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GetTaskRunSessionRequest) ProtoMessage() {}
+
+func (x *GetTaskRunSessionRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_rollout_service_proto_msgTypes[18]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use GetTaskRunSessionRequest.ProtoReflect.Descriptor instead.
+func (*GetTaskRunSessionRequest) Descriptor() ([]byte, []int) {
+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{18}
+}
+
+func (x *GetTaskRunSessionRequest) GetParent() string {
+ if x != nil {
+ return x.Parent
+ }
+ return ""
+}
+
+type TaskRunSession struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/session
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // Types that are assignable to Session:
+ //
+ // *TaskRunSession_Postgres_
+ Session isTaskRunSession_Session `protobuf_oneof:"session"`
+}
+
+func (x *TaskRunSession) Reset() {
+ *x = TaskRunSession{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_rollout_service_proto_msgTypes[19]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *TaskRunSession) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*TaskRunSession) ProtoMessage() {}
+
+func (x *TaskRunSession) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_rollout_service_proto_msgTypes[19]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use TaskRunSession.ProtoReflect.Descriptor instead.
+func (*TaskRunSession) Descriptor() ([]byte, []int) {
+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{19}
+}
+
+func (x *TaskRunSession) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (m *TaskRunSession) GetSession() isTaskRunSession_Session {
+ if m != nil {
+ return m.Session
+ }
+ return nil
+}
+
+func (x *TaskRunSession) GetPostgres() *TaskRunSession_Postgres {
+ if x, ok := x.GetSession().(*TaskRunSession_Postgres_); ok {
+ return x.Postgres
+ }
+ return nil
+}
+
+type isTaskRunSession_Session interface {
+ isTaskRunSession_Session()
+}
+
+type TaskRunSession_Postgres_ struct {
+ Postgres *TaskRunSession_Postgres `protobuf:"bytes,2,opt,name=postgres,proto3,oneof"`
+}
+
+func (*TaskRunSession_Postgres_) isTaskRunSession_Session() {}
+
type Task_DatabaseCreate struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -1847,7 +1971,7 @@ type Task_DatabaseCreate struct {
func (x *Task_DatabaseCreate) Reset() {
*x = Task_DatabaseCreate{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_rollout_service_proto_msgTypes[18]
+ mi := &file_v1_rollout_service_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1860,7 +1984,7 @@ func (x *Task_DatabaseCreate) String() string {
func (*Task_DatabaseCreate) ProtoMessage() {}
func (x *Task_DatabaseCreate) ProtoReflect() protoreflect.Message {
- mi := &file_v1_rollout_service_proto_msgTypes[18]
+ mi := &file_v1_rollout_service_proto_msgTypes[20]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1943,7 +2067,7 @@ type Task_DatabaseSchemaBaseline struct {
func (x *Task_DatabaseSchemaBaseline) Reset() {
*x = Task_DatabaseSchemaBaseline{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_rollout_service_proto_msgTypes[19]
+ mi := &file_v1_rollout_service_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1956,7 +2080,7 @@ func (x *Task_DatabaseSchemaBaseline) String() string {
func (*Task_DatabaseSchemaBaseline) ProtoMessage() {}
func (x *Task_DatabaseSchemaBaseline) ProtoReflect() protoreflect.Message {
- mi := &file_v1_rollout_service_proto_msgTypes[19]
+ mi := &file_v1_rollout_service_proto_msgTypes[21]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1992,7 +2116,7 @@ type Task_DatabaseSchemaUpdate struct {
func (x *Task_DatabaseSchemaUpdate) Reset() {
*x = Task_DatabaseSchemaUpdate{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_rollout_service_proto_msgTypes[20]
+ mi := &file_v1_rollout_service_proto_msgTypes[22]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2005,7 +2129,7 @@ func (x *Task_DatabaseSchemaUpdate) String() string {
func (*Task_DatabaseSchemaUpdate) ProtoMessage() {}
func (x *Task_DatabaseSchemaUpdate) ProtoReflect() protoreflect.Message {
- mi := &file_v1_rollout_service_proto_msgTypes[20]
+ mi := &file_v1_rollout_service_proto_msgTypes[22]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2048,7 +2172,7 @@ type Task_DatabaseDataUpdate struct {
func (x *Task_DatabaseDataUpdate) Reset() {
*x = Task_DatabaseDataUpdate{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_rollout_service_proto_msgTypes[21]
+ mi := &file_v1_rollout_service_proto_msgTypes[23]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2061,7 +2185,7 @@ func (x *Task_DatabaseDataUpdate) String() string {
func (*Task_DatabaseDataUpdate) ProtoMessage() {}
func (x *Task_DatabaseDataUpdate) ProtoReflect() protoreflect.Message {
- mi := &file_v1_rollout_service_proto_msgTypes[21]
+ mi := &file_v1_rollout_service_proto_msgTypes[23]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2112,7 +2236,7 @@ type Task_DatabaseDataExport struct {
func (x *Task_DatabaseDataExport) Reset() {
*x = Task_DatabaseDataExport{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_rollout_service_proto_msgTypes[22]
+ mi := &file_v1_rollout_service_proto_msgTypes[24]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2125,7 +2249,7 @@ func (x *Task_DatabaseDataExport) String() string {
func (*Task_DatabaseDataExport) ProtoMessage() {}
func (x *Task_DatabaseDataExport) ProtoReflect() protoreflect.Message {
- mi := &file_v1_rollout_service_proto_msgTypes[22]
+ mi := &file_v1_rollout_service_proto_msgTypes[24]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2184,7 +2308,7 @@ type TaskRun_ExecutionDetail struct {
func (x *TaskRun_ExecutionDetail) Reset() {
*x = TaskRun_ExecutionDetail{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_rollout_service_proto_msgTypes[24]
+ mi := &file_v1_rollout_service_proto_msgTypes[26]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2197,7 +2321,7 @@ func (x *TaskRun_ExecutionDetail) String() string {
func (*TaskRun_ExecutionDetail) ProtoMessage() {}
func (x *TaskRun_ExecutionDetail) ProtoReflect() protoreflect.Message {
- mi := &file_v1_rollout_service_proto_msgTypes[24]
+ mi := &file_v1_rollout_service_proto_msgTypes[26]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2255,7 +2379,7 @@ type TaskRun_ExecutionDetail_Position struct {
func (x *TaskRun_ExecutionDetail_Position) Reset() {
*x = TaskRun_ExecutionDetail_Position{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_rollout_service_proto_msgTypes[25]
+ mi := &file_v1_rollout_service_proto_msgTypes[27]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2268,7 +2392,7 @@ func (x *TaskRun_ExecutionDetail_Position) String() string {
func (*TaskRun_ExecutionDetail_Position) ProtoMessage() {}
func (x *TaskRun_ExecutionDetail_Position) ProtoReflect() protoreflect.Message {
- mi := &file_v1_rollout_service_proto_msgTypes[25]
+ mi := &file_v1_rollout_service_proto_msgTypes[27]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2311,7 +2435,7 @@ type TaskRunLogEntry_SchemaDump struct {
func (x *TaskRunLogEntry_SchemaDump) Reset() {
*x = TaskRunLogEntry_SchemaDump{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_rollout_service_proto_msgTypes[26]
+ mi := &file_v1_rollout_service_proto_msgTypes[28]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2324,7 +2448,7 @@ func (x *TaskRunLogEntry_SchemaDump) String() string {
func (*TaskRunLogEntry_SchemaDump) ProtoMessage() {}
func (x *TaskRunLogEntry_SchemaDump) ProtoReflect() protoreflect.Message {
- mi := &file_v1_rollout_service_proto_msgTypes[26]
+ mi := &file_v1_rollout_service_proto_msgTypes[28]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2375,7 +2499,7 @@ type TaskRunLogEntry_CommandExecute struct {
func (x *TaskRunLogEntry_CommandExecute) Reset() {
*x = TaskRunLogEntry_CommandExecute{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_rollout_service_proto_msgTypes[27]
+ mi := &file_v1_rollout_service_proto_msgTypes[29]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2388,7 +2512,7 @@ func (x *TaskRunLogEntry_CommandExecute) String() string {
func (*TaskRunLogEntry_CommandExecute) ProtoMessage() {}
func (x *TaskRunLogEntry_CommandExecute) ProtoReflect() protoreflect.Message {
- mi := &file_v1_rollout_service_proto_msgTypes[27]
+ mi := &file_v1_rollout_service_proto_msgTypes[29]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2438,7 +2562,7 @@ type TaskRunLogEntry_DatabaseSync struct {
func (x *TaskRunLogEntry_DatabaseSync) Reset() {
*x = TaskRunLogEntry_DatabaseSync{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_rollout_service_proto_msgTypes[28]
+ mi := &file_v1_rollout_service_proto_msgTypes[30]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2451,7 +2575,7 @@ func (x *TaskRunLogEntry_DatabaseSync) String() string {
func (*TaskRunLogEntry_DatabaseSync) ProtoMessage() {}
func (x *TaskRunLogEntry_DatabaseSync) ProtoReflect() protoreflect.Message {
- mi := &file_v1_rollout_service_proto_msgTypes[28]
+ mi := &file_v1_rollout_service_proto_msgTypes[30]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2499,7 +2623,7 @@ type TaskRunLogEntry_TaskRunStatusUpdate struct {
func (x *TaskRunLogEntry_TaskRunStatusUpdate) Reset() {
*x = TaskRunLogEntry_TaskRunStatusUpdate{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_rollout_service_proto_msgTypes[29]
+ mi := &file_v1_rollout_service_proto_msgTypes[31]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2512,7 +2636,7 @@ func (x *TaskRunLogEntry_TaskRunStatusUpdate) String() string {
func (*TaskRunLogEntry_TaskRunStatusUpdate) ProtoMessage() {}
func (x *TaskRunLogEntry_TaskRunStatusUpdate) ProtoReflect() protoreflect.Message {
- mi := &file_v1_rollout_service_proto_msgTypes[29]
+ mi := &file_v1_rollout_service_proto_msgTypes[31]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2547,7 +2671,7 @@ type TaskRunLogEntry_TransactionControl struct {
func (x *TaskRunLogEntry_TransactionControl) Reset() {
*x = TaskRunLogEntry_TransactionControl{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_rollout_service_proto_msgTypes[30]
+ mi := &file_v1_rollout_service_proto_msgTypes[32]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2560,7 +2684,7 @@ func (x *TaskRunLogEntry_TransactionControl) String() string {
func (*TaskRunLogEntry_TransactionControl) ProtoMessage() {}
func (x *TaskRunLogEntry_TransactionControl) ProtoReflect() protoreflect.Message {
- mi := &file_v1_rollout_service_proto_msgTypes[30]
+ mi := &file_v1_rollout_service_proto_msgTypes[32]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2606,7 +2730,7 @@ type TaskRunLogEntry_CommandExecute_CommandResponse struct {
func (x *TaskRunLogEntry_CommandExecute_CommandResponse) Reset() {
*x = TaskRunLogEntry_CommandExecute_CommandResponse{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_rollout_service_proto_msgTypes[31]
+ mi := &file_v1_rollout_service_proto_msgTypes[33]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2619,7 +2743,7 @@ func (x *TaskRunLogEntry_CommandExecute_CommandResponse) String() string {
func (*TaskRunLogEntry_CommandExecute_CommandResponse) ProtoMessage() {}
func (x *TaskRunLogEntry_CommandExecute_CommandResponse) ProtoReflect() protoreflect.Message {
- mi := &file_v1_rollout_service_proto_msgTypes[31]
+ mi := &file_v1_rollout_service_proto_msgTypes[33]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2663,6 +2787,197 @@ func (x *TaskRunLogEntry_CommandExecute_CommandResponse) GetAllAffectedRows() []
return nil
}
+type TaskRunSession_Postgres struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Sessions []*TaskRunSession_Postgres_Session `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty"`
+}
+
+func (x *TaskRunSession_Postgres) Reset() {
+ *x = TaskRunSession_Postgres{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_rollout_service_proto_msgTypes[34]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *TaskRunSession_Postgres) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*TaskRunSession_Postgres) ProtoMessage() {}
+
+func (x *TaskRunSession_Postgres) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_rollout_service_proto_msgTypes[34]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use TaskRunSession_Postgres.ProtoReflect.Descriptor instead.
+func (*TaskRunSession_Postgres) Descriptor() ([]byte, []int) {
+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{19, 0}
+}
+
+func (x *TaskRunSession_Postgres) GetSessions() []*TaskRunSession_Postgres_Session {
+ if x != nil {
+ return x.Sessions
+ }
+ return nil
+}
+
+// Read from `pg_stat_activity`
+type TaskRunSession_Postgres_Session struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Pid string `protobuf:"bytes,1,opt,name=pid,proto3" json:"pid,omitempty"`
+ Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
+ State *string `protobuf:"bytes,3,opt,name=state,proto3,oneof" json:"state,omitempty"`
+ WaitEventType *string `protobuf:"bytes,4,opt,name=wait_event_type,json=waitEventType,proto3,oneof" json:"wait_event_type,omitempty"`
+ WaitEvent *string `protobuf:"bytes,5,opt,name=wait_event,json=waitEvent,proto3,oneof" json:"wait_event,omitempty"`
+ Datname *string `protobuf:"bytes,6,opt,name=datname,proto3,oneof" json:"datname,omitempty"`
+ Usename *string `protobuf:"bytes,7,opt,name=usename,proto3,oneof" json:"usename,omitempty"`
+ ApplicationName string `protobuf:"bytes,8,opt,name=application_name,json=applicationName,proto3" json:"application_name,omitempty"`
+ ClientAddr *string `protobuf:"bytes,9,opt,name=client_addr,json=clientAddr,proto3,oneof" json:"client_addr,omitempty"`
+ ClientPort *string `protobuf:"bytes,10,opt,name=client_port,json=clientPort,proto3,oneof" json:"client_port,omitempty"`
+ BackendStart *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=backend_start,json=backendStart,proto3" json:"backend_start,omitempty"`
+ XactStart *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=xact_start,json=xactStart,proto3,oneof" json:"xact_start,omitempty"`
+ QueryStart *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=query_start,json=queryStart,proto3,oneof" json:"query_start,omitempty"`
+}
+
+func (x *TaskRunSession_Postgres_Session) Reset() {
+ *x = TaskRunSession_Postgres_Session{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_rollout_service_proto_msgTypes[35]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *TaskRunSession_Postgres_Session) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*TaskRunSession_Postgres_Session) ProtoMessage() {}
+
+func (x *TaskRunSession_Postgres_Session) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_rollout_service_proto_msgTypes[35]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use TaskRunSession_Postgres_Session.ProtoReflect.Descriptor instead.
+func (*TaskRunSession_Postgres_Session) Descriptor() ([]byte, []int) {
+ return file_v1_rollout_service_proto_rawDescGZIP(), []int{19, 0, 0}
+}
+
+func (x *TaskRunSession_Postgres_Session) GetPid() string {
+ if x != nil {
+ return x.Pid
+ }
+ return ""
+}
+
+func (x *TaskRunSession_Postgres_Session) GetQuery() string {
+ if x != nil {
+ return x.Query
+ }
+ return ""
+}
+
+func (x *TaskRunSession_Postgres_Session) GetState() string {
+ if x != nil && x.State != nil {
+ return *x.State
+ }
+ return ""
+}
+
+func (x *TaskRunSession_Postgres_Session) GetWaitEventType() string {
+ if x != nil && x.WaitEventType != nil {
+ return *x.WaitEventType
+ }
+ return ""
+}
+
+func (x *TaskRunSession_Postgres_Session) GetWaitEvent() string {
+ if x != nil && x.WaitEvent != nil {
+ return *x.WaitEvent
+ }
+ return ""
+}
+
+func (x *TaskRunSession_Postgres_Session) GetDatname() string {
+ if x != nil && x.Datname != nil {
+ return *x.Datname
+ }
+ return ""
+}
+
+func (x *TaskRunSession_Postgres_Session) GetUsename() string {
+ if x != nil && x.Usename != nil {
+ return *x.Usename
+ }
+ return ""
+}
+
+func (x *TaskRunSession_Postgres_Session) GetApplicationName() string {
+ if x != nil {
+ return x.ApplicationName
+ }
+ return ""
+}
+
+func (x *TaskRunSession_Postgres_Session) GetClientAddr() string {
+ if x != nil && x.ClientAddr != nil {
+ return *x.ClientAddr
+ }
+ return ""
+}
+
+func (x *TaskRunSession_Postgres_Session) GetClientPort() string {
+ if x != nil && x.ClientPort != nil {
+ return *x.ClientPort
+ }
+ return ""
+}
+
+func (x *TaskRunSession_Postgres_Session) GetBackendStart() *timestamppb.Timestamp {
+ if x != nil {
+ return x.BackendStart
+ }
+ return nil
+}
+
+func (x *TaskRunSession_Postgres_Session) GetXactStart() *timestamppb.Timestamp {
+ if x != nil {
+ return x.XactStart
+ }
+ return nil
+}
+
+func (x *TaskRunSession_Postgres_Session) GetQueryStart() *timestamppb.Timestamp {
+ if x != nil {
+ return x.QueryStart
+ }
+ return nil
+}
+
var File_v1_rollout_service_proto protoreflect.FileDescriptor
var file_v1_rollout_service_proto_rawDesc = []byte{
@@ -3074,54 +3389,123 @@ var file_v1_rollout_service_proto_rawDesc = []byte{
0x53, 0x59, 0x4e, 0x43, 0x10, 0x03, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x52,
0x55, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45,
0x10, 0x04, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x41, 0x43, 0x54, 0x49, 0x4f,
- 0x4e, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x52, 0x4f, 0x4c, 0x10, 0x05, 0x32, 0x83, 0x0a, 0x0a, 0x0e,
- 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x73,
- 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0x1e, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x6f,
- 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f,
- 0x75, 0x74, 0x22, 0x2f, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02,
- 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f,
- 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73,
- 0x2f, 0x2a, 0x7d, 0x12, 0x8c, 0x01, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f,
- 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75,
- 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x22, 0x42,
- 0xda, 0x41, 0x0e, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75,
- 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x07, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74,
- 0x22, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72,
- 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75,
- 0x74, 0x73, 0x12, 0x85, 0x01, 0x0a, 0x0e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x6f,
- 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x6f, 0x6c, 0x6c, 0x6f,
+ 0x4e, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x52, 0x4f, 0x4c, 0x10, 0x05, 0x22, 0x32, 0x0a, 0x18, 0x47,
+ 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,
+ 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x22,
+ 0xe6, 0x06, 0x0a, 0x0e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x53, 0x65, 0x73, 0x73, 0x69,
+ 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x08, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72,
+ 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x53, 0x65,
+ 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x48, 0x00,
+ 0x52, 0x08, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x1a, 0xf0, 0x05, 0x0a, 0x08, 0x50,
+ 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x12, 0x48, 0x0a, 0x08, 0x73, 0x65, 0x73, 0x73, 0x69,
+ 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x53,
+ 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x2e,
+ 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
+ 0x73, 0x1a, 0x99, 0x05, 0x0a, 0x07, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a,
+ 0x03, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x70, 0x69, 0x64, 0x12,
+ 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
+ 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x19, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03,
+ 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x88, 0x01, 0x01,
+ 0x12, 0x2b, 0x0a, 0x0f, 0x77, 0x61, 0x69, 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74,
+ 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0d, 0x77, 0x61, 0x69,
+ 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x88, 0x01, 0x01, 0x12, 0x22, 0x0a,
+ 0x0a, 0x77, 0x61, 0x69, 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28,
+ 0x09, 0x48, 0x02, 0x52, 0x09, 0x77, 0x61, 0x69, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x88, 0x01,
+ 0x01, 0x12, 0x1d, 0x0a, 0x07, 0x64, 0x61, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01,
+ 0x28, 0x09, 0x48, 0x03, 0x52, 0x07, 0x64, 0x61, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01,
+ 0x12, 0x1d, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28,
+ 0x09, 0x48, 0x04, 0x52, 0x07, 0x75, 0x73, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12,
+ 0x29, 0x0a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e,
+ 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x70, 0x70, 0x6c, 0x69,
+ 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0b, 0x63, 0x6c,
+ 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x48,
+ 0x05, 0x52, 0x0a, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x88, 0x01, 0x01,
+ 0x12, 0x24, 0x0a, 0x0b, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18,
+ 0x0a, 0x20, 0x01, 0x28, 0x09, 0x48, 0x06, 0x52, 0x0a, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x50,
+ 0x6f, 0x72, 0x74, 0x88, 0x01, 0x01, 0x12, 0x3f, 0x0a, 0x0d, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e,
+ 0x64, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
+ 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
+ 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x62, 0x61, 0x63, 0x6b, 0x65,
+ 0x6e, 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x3e, 0x0a, 0x0a, 0x78, 0x61, 0x63, 0x74, 0x5f,
+ 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
+ 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
+ 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x07, 0x52, 0x09, 0x78, 0x61, 0x63, 0x74, 0x53,
+ 0x74, 0x61, 0x72, 0x74, 0x88, 0x01, 0x01, 0x12, 0x40, 0x0a, 0x0b, 0x71, 0x75, 0x65, 0x72, 0x79,
+ 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
+ 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
+ 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x08, 0x52, 0x0a, 0x71, 0x75, 0x65, 0x72,
+ 0x79, 0x53, 0x74, 0x61, 0x72, 0x74, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x73, 0x74,
+ 0x61, 0x74, 0x65, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x77, 0x61, 0x69, 0x74, 0x5f, 0x65, 0x76, 0x65,
+ 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x77, 0x61, 0x69, 0x74,
+ 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x64, 0x61, 0x74, 0x6e, 0x61,
+ 0x6d, 0x65, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x75, 0x73, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x0e,
+ 0x0a, 0x0c, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x42, 0x0e,
+ 0x0a, 0x0c, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x42, 0x0d,
+ 0x0a, 0x0b, 0x5f, 0x78, 0x61, 0x63, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x42, 0x0e, 0x0a,
+ 0x0c, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x42, 0x09, 0x0a,
+ 0x07, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x32, 0xb6, 0x0b, 0x0a, 0x0e, 0x52, 0x6f, 0x6c,
+ 0x6c, 0x6f, 0x75, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x73, 0x0a, 0x0a, 0x47,
+ 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f,
0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65,
0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x22,
- 0x39, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x3a, 0x01,
- 0x2a, 0x22, 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d,
- 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x70, 0x72, 0x65, 0x76,
- 0x69, 0x65, 0x77, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0xa2, 0x01, 0x0a, 0x0c, 0x4c,
- 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x20, 0x2e, 0x62, 0x79,
- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61,
- 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74,
- 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
- 0x22, 0x4d, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02,
- 0x3e, 0x12, 0x3c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70,
- 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75,
- 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x74, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x61,
- 0x73, 0x6b, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12,
- 0xa0, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f,
- 0x67, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x22, 0x53, 0xda,
- 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x44, 0x12, 0x42,
+ 0x2f, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20,
+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
+ 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73, 0x2f, 0x2a, 0x7d,
+ 0x12, 0x8c, 0x01, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x6c, 0x6f,
+ 0x75, 0x74, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x22, 0x42, 0xda, 0x41, 0x0e,
+ 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x82, 0xd3,
+ 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x07, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x22, 0x20, 0x2f,
+ 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,
+ 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73, 0x12,
+ 0x85, 0x01, 0x0a, 0x0e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x6f, 0x6c, 0x6c, 0x6f,
+ 0x75, 0x74, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x22, 0x39, 0xda, 0x41,
+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x3a, 0x01, 0x2a, 0x22, 0x27,
+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f,
+ 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77,
+ 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0xa2, 0x01, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74,
+ 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52,
+ 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73,
+ 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4d, 0xda,
+ 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, 0x12, 0x3c,
0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a,
0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73, 0x2f,
0x2a, 0x2f, 0x73, 0x74, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73,
- 0x2f, 0x2a, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x6c,
- 0x6f, 0x67, 0x12, 0xa6, 0x01, 0x0a, 0x0d, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x75, 0x6e, 0x54,
+ 0x2f, 0x2a, 0x7d, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x12, 0xa0, 0x01, 0x0a,
+ 0x0d, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x12, 0x21,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74,
+ 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x1a, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x22, 0x53, 0xda, 0x41, 0x06, 0x70,
+ 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x44, 0x12, 0x42, 0x2f, 0x76, 0x31,
+ 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
+ 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73,
+ 0x74, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2f, 0x2a, 0x2f,
+ 0x74, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x6c, 0x6f, 0x67, 0x12,
+ 0xb0, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x53, 0x65,
+ 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x53, 0x65,
+ 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52,
+ 0x75, 0x6e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x57, 0xda, 0x41, 0x06, 0x70, 0x61,
+ 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x48, 0x12, 0x46, 0x2f, 0x76, 0x31, 0x2f,
+ 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,
+ 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x74,
+ 0x61, 0x67, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2f, 0x2a, 0x2f, 0x74,
+ 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69,
+ 0x6f, 0x6e, 0x12, 0xa6, 0x01, 0x0a, 0x0d, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x75, 0x6e, 0x54,
0x61, 0x73, 0x6b, 0x73, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x75, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x73,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
@@ -3172,7 +3556,7 @@ func file_v1_rollout_service_proto_rawDescGZIP() []byte {
}
var file_v1_rollout_service_proto_enumTypes = make([]protoimpl.EnumInfo, 8)
-var file_v1_rollout_service_proto_msgTypes = make([]protoimpl.MessageInfo, 32)
+var file_v1_rollout_service_proto_msgTypes = make([]protoimpl.MessageInfo, 36)
var file_v1_rollout_service_proto_goTypes = []any{
(Task_Status)(0), // 0: bytebase.v1.Task.Status
(Task_Type)(0), // 1: bytebase.v1.Task.Type
@@ -3200,86 +3584,97 @@ var file_v1_rollout_service_proto_goTypes = []any{
(*TaskRun)(nil), // 23: bytebase.v1.TaskRun
(*TaskRunLog)(nil), // 24: bytebase.v1.TaskRunLog
(*TaskRunLogEntry)(nil), // 25: bytebase.v1.TaskRunLogEntry
- (*Task_DatabaseCreate)(nil), // 26: bytebase.v1.Task.DatabaseCreate
- (*Task_DatabaseSchemaBaseline)(nil), // 27: bytebase.v1.Task.DatabaseSchemaBaseline
- (*Task_DatabaseSchemaUpdate)(nil), // 28: bytebase.v1.Task.DatabaseSchemaUpdate
- (*Task_DatabaseDataUpdate)(nil), // 29: bytebase.v1.Task.DatabaseDataUpdate
- (*Task_DatabaseDataExport)(nil), // 30: bytebase.v1.Task.DatabaseDataExport
- nil, // 31: bytebase.v1.Task.DatabaseCreate.LabelsEntry
- (*TaskRun_ExecutionDetail)(nil), // 32: bytebase.v1.TaskRun.ExecutionDetail
- (*TaskRun_ExecutionDetail_Position)(nil), // 33: bytebase.v1.TaskRun.ExecutionDetail.Position
- (*TaskRunLogEntry_SchemaDump)(nil), // 34: bytebase.v1.TaskRunLogEntry.SchemaDump
- (*TaskRunLogEntry_CommandExecute)(nil), // 35: bytebase.v1.TaskRunLogEntry.CommandExecute
- (*TaskRunLogEntry_DatabaseSync)(nil), // 36: bytebase.v1.TaskRunLogEntry.DatabaseSync
- (*TaskRunLogEntry_TaskRunStatusUpdate)(nil), // 37: bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate
- (*TaskRunLogEntry_TransactionControl)(nil), // 38: bytebase.v1.TaskRunLogEntry.TransactionControl
- (*TaskRunLogEntry_CommandExecute_CommandResponse)(nil), // 39: bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse
- (*Plan)(nil), // 40: bytebase.v1.Plan
- (*timestamppb.Timestamp)(nil), // 41: google.protobuf.Timestamp
- (ExportFormat)(0), // 42: bytebase.v1.ExportFormat
+ (*GetTaskRunSessionRequest)(nil), // 26: bytebase.v1.GetTaskRunSessionRequest
+ (*TaskRunSession)(nil), // 27: bytebase.v1.TaskRunSession
+ (*Task_DatabaseCreate)(nil), // 28: bytebase.v1.Task.DatabaseCreate
+ (*Task_DatabaseSchemaBaseline)(nil), // 29: bytebase.v1.Task.DatabaseSchemaBaseline
+ (*Task_DatabaseSchemaUpdate)(nil), // 30: bytebase.v1.Task.DatabaseSchemaUpdate
+ (*Task_DatabaseDataUpdate)(nil), // 31: bytebase.v1.Task.DatabaseDataUpdate
+ (*Task_DatabaseDataExport)(nil), // 32: bytebase.v1.Task.DatabaseDataExport
+ nil, // 33: bytebase.v1.Task.DatabaseCreate.LabelsEntry
+ (*TaskRun_ExecutionDetail)(nil), // 34: bytebase.v1.TaskRun.ExecutionDetail
+ (*TaskRun_ExecutionDetail_Position)(nil), // 35: bytebase.v1.TaskRun.ExecutionDetail.Position
+ (*TaskRunLogEntry_SchemaDump)(nil), // 36: bytebase.v1.TaskRunLogEntry.SchemaDump
+ (*TaskRunLogEntry_CommandExecute)(nil), // 37: bytebase.v1.TaskRunLogEntry.CommandExecute
+ (*TaskRunLogEntry_DatabaseSync)(nil), // 38: bytebase.v1.TaskRunLogEntry.DatabaseSync
+ (*TaskRunLogEntry_TaskRunStatusUpdate)(nil), // 39: bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate
+ (*TaskRunLogEntry_TransactionControl)(nil), // 40: bytebase.v1.TaskRunLogEntry.TransactionControl
+ (*TaskRunLogEntry_CommandExecute_CommandResponse)(nil), // 41: bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse
+ (*TaskRunSession_Postgres)(nil), // 42: bytebase.v1.TaskRunSession.Postgres
+ (*TaskRunSession_Postgres_Session)(nil), // 43: bytebase.v1.TaskRunSession.Postgres.Session
+ (*Plan)(nil), // 44: bytebase.v1.Plan
+ (*timestamppb.Timestamp)(nil), // 45: google.protobuf.Timestamp
+ (ExportFormat)(0), // 46: bytebase.v1.ExportFormat
}
var file_v1_rollout_service_proto_depIdxs = []int32{
20, // 0: bytebase.v1.CreateRolloutRequest.rollout:type_name -> bytebase.v1.Rollout
- 40, // 1: bytebase.v1.PreviewRolloutRequest.plan:type_name -> bytebase.v1.Plan
+ 44, // 1: bytebase.v1.PreviewRolloutRequest.plan:type_name -> bytebase.v1.Plan
23, // 2: bytebase.v1.ListTaskRunsResponse.task_runs:type_name -> bytebase.v1.TaskRun
21, // 3: bytebase.v1.Rollout.stages:type_name -> bytebase.v1.Stage
22, // 4: bytebase.v1.Stage.tasks:type_name -> bytebase.v1.Task
0, // 5: bytebase.v1.Task.status:type_name -> bytebase.v1.Task.Status
1, // 6: bytebase.v1.Task.type:type_name -> bytebase.v1.Task.Type
- 26, // 7: bytebase.v1.Task.database_create:type_name -> bytebase.v1.Task.DatabaseCreate
- 27, // 8: bytebase.v1.Task.database_schema_baseline:type_name -> bytebase.v1.Task.DatabaseSchemaBaseline
- 28, // 9: bytebase.v1.Task.database_schema_update:type_name -> bytebase.v1.Task.DatabaseSchemaUpdate
- 29, // 10: bytebase.v1.Task.database_data_update:type_name -> bytebase.v1.Task.DatabaseDataUpdate
- 30, // 11: bytebase.v1.Task.database_data_export:type_name -> bytebase.v1.Task.DatabaseDataExport
- 41, // 12: bytebase.v1.TaskRun.create_time:type_name -> google.protobuf.Timestamp
- 41, // 13: bytebase.v1.TaskRun.update_time:type_name -> google.protobuf.Timestamp
+ 28, // 7: bytebase.v1.Task.database_create:type_name -> bytebase.v1.Task.DatabaseCreate
+ 29, // 8: bytebase.v1.Task.database_schema_baseline:type_name -> bytebase.v1.Task.DatabaseSchemaBaseline
+ 30, // 9: bytebase.v1.Task.database_schema_update:type_name -> bytebase.v1.Task.DatabaseSchemaUpdate
+ 31, // 10: bytebase.v1.Task.database_data_update:type_name -> bytebase.v1.Task.DatabaseDataUpdate
+ 32, // 11: bytebase.v1.Task.database_data_export:type_name -> bytebase.v1.Task.DatabaseDataExport
+ 45, // 12: bytebase.v1.TaskRun.create_time:type_name -> google.protobuf.Timestamp
+ 45, // 13: bytebase.v1.TaskRun.update_time:type_name -> google.protobuf.Timestamp
2, // 14: bytebase.v1.TaskRun.status:type_name -> bytebase.v1.TaskRun.Status
3, // 15: bytebase.v1.TaskRun.execution_status:type_name -> bytebase.v1.TaskRun.ExecutionStatus
- 32, // 16: bytebase.v1.TaskRun.execution_detail:type_name -> bytebase.v1.TaskRun.ExecutionDetail
- 41, // 17: bytebase.v1.TaskRun.start_time:type_name -> google.protobuf.Timestamp
+ 34, // 16: bytebase.v1.TaskRun.execution_detail:type_name -> bytebase.v1.TaskRun.ExecutionDetail
+ 45, // 17: bytebase.v1.TaskRun.start_time:type_name -> google.protobuf.Timestamp
4, // 18: bytebase.v1.TaskRun.export_archive_status:type_name -> bytebase.v1.TaskRun.ExportArchiveStatus
25, // 19: bytebase.v1.TaskRunLog.entries:type_name -> bytebase.v1.TaskRunLogEntry
5, // 20: bytebase.v1.TaskRunLogEntry.type:type_name -> bytebase.v1.TaskRunLogEntry.Type
- 41, // 21: bytebase.v1.TaskRunLogEntry.log_time:type_name -> google.protobuf.Timestamp
- 34, // 22: bytebase.v1.TaskRunLogEntry.schema_dump:type_name -> bytebase.v1.TaskRunLogEntry.SchemaDump
- 35, // 23: bytebase.v1.TaskRunLogEntry.command_execute:type_name -> bytebase.v1.TaskRunLogEntry.CommandExecute
- 36, // 24: bytebase.v1.TaskRunLogEntry.database_sync:type_name -> bytebase.v1.TaskRunLogEntry.DatabaseSync
- 37, // 25: bytebase.v1.TaskRunLogEntry.task_run_status_update:type_name -> bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate
- 38, // 26: bytebase.v1.TaskRunLogEntry.transaction_control:type_name -> bytebase.v1.TaskRunLogEntry.TransactionControl
- 31, // 27: bytebase.v1.Task.DatabaseCreate.labels:type_name -> bytebase.v1.Task.DatabaseCreate.LabelsEntry
- 42, // 28: bytebase.v1.Task.DatabaseDataExport.format:type_name -> bytebase.v1.ExportFormat
- 33, // 29: bytebase.v1.TaskRun.ExecutionDetail.command_start_position:type_name -> bytebase.v1.TaskRun.ExecutionDetail.Position
- 33, // 30: bytebase.v1.TaskRun.ExecutionDetail.command_end_position:type_name -> bytebase.v1.TaskRun.ExecutionDetail.Position
- 41, // 31: bytebase.v1.TaskRunLogEntry.SchemaDump.start_time:type_name -> google.protobuf.Timestamp
- 41, // 32: bytebase.v1.TaskRunLogEntry.SchemaDump.end_time:type_name -> google.protobuf.Timestamp
- 41, // 33: bytebase.v1.TaskRunLogEntry.CommandExecute.log_time:type_name -> google.protobuf.Timestamp
- 39, // 34: bytebase.v1.TaskRunLogEntry.CommandExecute.response:type_name -> bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse
- 41, // 35: bytebase.v1.TaskRunLogEntry.DatabaseSync.start_time:type_name -> google.protobuf.Timestamp
- 41, // 36: bytebase.v1.TaskRunLogEntry.DatabaseSync.end_time:type_name -> google.protobuf.Timestamp
- 6, // 37: bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.status:type_name -> bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.Status
- 7, // 38: bytebase.v1.TaskRunLogEntry.TransactionControl.type:type_name -> bytebase.v1.TaskRunLogEntry.TransactionControl.Type
- 41, // 39: bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse.log_time:type_name -> google.protobuf.Timestamp
- 14, // 40: bytebase.v1.RolloutService.GetRollout:input_type -> bytebase.v1.GetRolloutRequest
- 15, // 41: bytebase.v1.RolloutService.CreateRollout:input_type -> bytebase.v1.CreateRolloutRequest
- 16, // 42: bytebase.v1.RolloutService.PreviewRollout:input_type -> bytebase.v1.PreviewRolloutRequest
- 17, // 43: bytebase.v1.RolloutService.ListTaskRuns:input_type -> bytebase.v1.ListTaskRunsRequest
- 19, // 44: bytebase.v1.RolloutService.GetTaskRunLog:input_type -> bytebase.v1.GetTaskRunLogRequest
- 8, // 45: bytebase.v1.RolloutService.BatchRunTasks:input_type -> bytebase.v1.BatchRunTasksRequest
- 10, // 46: bytebase.v1.RolloutService.BatchSkipTasks:input_type -> bytebase.v1.BatchSkipTasksRequest
- 12, // 47: bytebase.v1.RolloutService.BatchCancelTaskRuns:input_type -> bytebase.v1.BatchCancelTaskRunsRequest
- 20, // 48: bytebase.v1.RolloutService.GetRollout:output_type -> bytebase.v1.Rollout
- 20, // 49: bytebase.v1.RolloutService.CreateRollout:output_type -> bytebase.v1.Rollout
- 20, // 50: bytebase.v1.RolloutService.PreviewRollout:output_type -> bytebase.v1.Rollout
- 18, // 51: bytebase.v1.RolloutService.ListTaskRuns:output_type -> bytebase.v1.ListTaskRunsResponse
- 24, // 52: bytebase.v1.RolloutService.GetTaskRunLog:output_type -> bytebase.v1.TaskRunLog
- 9, // 53: bytebase.v1.RolloutService.BatchRunTasks:output_type -> bytebase.v1.BatchRunTasksResponse
- 11, // 54: bytebase.v1.RolloutService.BatchSkipTasks:output_type -> bytebase.v1.BatchSkipTasksResponse
- 13, // 55: bytebase.v1.RolloutService.BatchCancelTaskRuns:output_type -> bytebase.v1.BatchCancelTaskRunsResponse
- 48, // [48:56] is the sub-list for method output_type
- 40, // [40:48] is the sub-list for method input_type
- 40, // [40:40] is the sub-list for extension type_name
- 40, // [40:40] is the sub-list for extension extendee
- 0, // [0:40] is the sub-list for field type_name
+ 45, // 21: bytebase.v1.TaskRunLogEntry.log_time:type_name -> google.protobuf.Timestamp
+ 36, // 22: bytebase.v1.TaskRunLogEntry.schema_dump:type_name -> bytebase.v1.TaskRunLogEntry.SchemaDump
+ 37, // 23: bytebase.v1.TaskRunLogEntry.command_execute:type_name -> bytebase.v1.TaskRunLogEntry.CommandExecute
+ 38, // 24: bytebase.v1.TaskRunLogEntry.database_sync:type_name -> bytebase.v1.TaskRunLogEntry.DatabaseSync
+ 39, // 25: bytebase.v1.TaskRunLogEntry.task_run_status_update:type_name -> bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate
+ 40, // 26: bytebase.v1.TaskRunLogEntry.transaction_control:type_name -> bytebase.v1.TaskRunLogEntry.TransactionControl
+ 42, // 27: bytebase.v1.TaskRunSession.postgres:type_name -> bytebase.v1.TaskRunSession.Postgres
+ 33, // 28: bytebase.v1.Task.DatabaseCreate.labels:type_name -> bytebase.v1.Task.DatabaseCreate.LabelsEntry
+ 46, // 29: bytebase.v1.Task.DatabaseDataExport.format:type_name -> bytebase.v1.ExportFormat
+ 35, // 30: bytebase.v1.TaskRun.ExecutionDetail.command_start_position:type_name -> bytebase.v1.TaskRun.ExecutionDetail.Position
+ 35, // 31: bytebase.v1.TaskRun.ExecutionDetail.command_end_position:type_name -> bytebase.v1.TaskRun.ExecutionDetail.Position
+ 45, // 32: bytebase.v1.TaskRunLogEntry.SchemaDump.start_time:type_name -> google.protobuf.Timestamp
+ 45, // 33: bytebase.v1.TaskRunLogEntry.SchemaDump.end_time:type_name -> google.protobuf.Timestamp
+ 45, // 34: bytebase.v1.TaskRunLogEntry.CommandExecute.log_time:type_name -> google.protobuf.Timestamp
+ 41, // 35: bytebase.v1.TaskRunLogEntry.CommandExecute.response:type_name -> bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse
+ 45, // 36: bytebase.v1.TaskRunLogEntry.DatabaseSync.start_time:type_name -> google.protobuf.Timestamp
+ 45, // 37: bytebase.v1.TaskRunLogEntry.DatabaseSync.end_time:type_name -> google.protobuf.Timestamp
+ 6, // 38: bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.status:type_name -> bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.Status
+ 7, // 39: bytebase.v1.TaskRunLogEntry.TransactionControl.type:type_name -> bytebase.v1.TaskRunLogEntry.TransactionControl.Type
+ 45, // 40: bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse.log_time:type_name -> google.protobuf.Timestamp
+ 43, // 41: bytebase.v1.TaskRunSession.Postgres.sessions:type_name -> bytebase.v1.TaskRunSession.Postgres.Session
+ 45, // 42: bytebase.v1.TaskRunSession.Postgres.Session.backend_start:type_name -> google.protobuf.Timestamp
+ 45, // 43: bytebase.v1.TaskRunSession.Postgres.Session.xact_start:type_name -> google.protobuf.Timestamp
+ 45, // 44: bytebase.v1.TaskRunSession.Postgres.Session.query_start:type_name -> google.protobuf.Timestamp
+ 14, // 45: bytebase.v1.RolloutService.GetRollout:input_type -> bytebase.v1.GetRolloutRequest
+ 15, // 46: bytebase.v1.RolloutService.CreateRollout:input_type -> bytebase.v1.CreateRolloutRequest
+ 16, // 47: bytebase.v1.RolloutService.PreviewRollout:input_type -> bytebase.v1.PreviewRolloutRequest
+ 17, // 48: bytebase.v1.RolloutService.ListTaskRuns:input_type -> bytebase.v1.ListTaskRunsRequest
+ 19, // 49: bytebase.v1.RolloutService.GetTaskRunLog:input_type -> bytebase.v1.GetTaskRunLogRequest
+ 26, // 50: bytebase.v1.RolloutService.GetTaskRunSession:input_type -> bytebase.v1.GetTaskRunSessionRequest
+ 8, // 51: bytebase.v1.RolloutService.BatchRunTasks:input_type -> bytebase.v1.BatchRunTasksRequest
+ 10, // 52: bytebase.v1.RolloutService.BatchSkipTasks:input_type -> bytebase.v1.BatchSkipTasksRequest
+ 12, // 53: bytebase.v1.RolloutService.BatchCancelTaskRuns:input_type -> bytebase.v1.BatchCancelTaskRunsRequest
+ 20, // 54: bytebase.v1.RolloutService.GetRollout:output_type -> bytebase.v1.Rollout
+ 20, // 55: bytebase.v1.RolloutService.CreateRollout:output_type -> bytebase.v1.Rollout
+ 20, // 56: bytebase.v1.RolloutService.PreviewRollout:output_type -> bytebase.v1.Rollout
+ 18, // 57: bytebase.v1.RolloutService.ListTaskRuns:output_type -> bytebase.v1.ListTaskRunsResponse
+ 24, // 58: bytebase.v1.RolloutService.GetTaskRunLog:output_type -> bytebase.v1.TaskRunLog
+ 27, // 59: bytebase.v1.RolloutService.GetTaskRunSession:output_type -> bytebase.v1.TaskRunSession
+ 9, // 60: bytebase.v1.RolloutService.BatchRunTasks:output_type -> bytebase.v1.BatchRunTasksResponse
+ 11, // 61: bytebase.v1.RolloutService.BatchSkipTasks:output_type -> bytebase.v1.BatchSkipTasksResponse
+ 13, // 62: bytebase.v1.RolloutService.BatchCancelTaskRuns:output_type -> bytebase.v1.BatchCancelTaskRunsResponse
+ 54, // [54:63] is the sub-list for method output_type
+ 45, // [45:54] is the sub-list for method input_type
+ 45, // [45:45] is the sub-list for extension type_name
+ 45, // [45:45] is the sub-list for extension extendee
+ 0, // [0:45] is the sub-list for field type_name
}
func init() { file_v1_rollout_service_proto_init() }
@@ -3507,7 +3902,7 @@ func file_v1_rollout_service_proto_init() {
}
}
file_v1_rollout_service_proto_msgTypes[18].Exporter = func(v any, i int) any {
- switch v := v.(*Task_DatabaseCreate); i {
+ switch v := v.(*GetTaskRunSessionRequest); i {
case 0:
return &v.state
case 1:
@@ -3519,7 +3914,7 @@ func file_v1_rollout_service_proto_init() {
}
}
file_v1_rollout_service_proto_msgTypes[19].Exporter = func(v any, i int) any {
- switch v := v.(*Task_DatabaseSchemaBaseline); i {
+ switch v := v.(*TaskRunSession); i {
case 0:
return &v.state
case 1:
@@ -3531,7 +3926,7 @@ func file_v1_rollout_service_proto_init() {
}
}
file_v1_rollout_service_proto_msgTypes[20].Exporter = func(v any, i int) any {
- switch v := v.(*Task_DatabaseSchemaUpdate); i {
+ switch v := v.(*Task_DatabaseCreate); i {
case 0:
return &v.state
case 1:
@@ -3543,7 +3938,7 @@ func file_v1_rollout_service_proto_init() {
}
}
file_v1_rollout_service_proto_msgTypes[21].Exporter = func(v any, i int) any {
- switch v := v.(*Task_DatabaseDataUpdate); i {
+ switch v := v.(*Task_DatabaseSchemaBaseline); i {
case 0:
return &v.state
case 1:
@@ -3555,7 +3950,19 @@ func file_v1_rollout_service_proto_init() {
}
}
file_v1_rollout_service_proto_msgTypes[22].Exporter = func(v any, i int) any {
- switch v := v.(*Task_DatabaseDataExport); i {
+ switch v := v.(*Task_DatabaseSchemaUpdate); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_rollout_service_proto_msgTypes[23].Exporter = func(v any, i int) any {
+ switch v := v.(*Task_DatabaseDataUpdate); i {
case 0:
return &v.state
case 1:
@@ -3567,6 +3974,18 @@ func file_v1_rollout_service_proto_init() {
}
}
file_v1_rollout_service_proto_msgTypes[24].Exporter = func(v any, i int) any {
+ switch v := v.(*Task_DatabaseDataExport); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_rollout_service_proto_msgTypes[26].Exporter = func(v any, i int) any {
switch v := v.(*TaskRun_ExecutionDetail); i {
case 0:
return &v.state
@@ -3578,7 +3997,7 @@ func file_v1_rollout_service_proto_init() {
return nil
}
}
- file_v1_rollout_service_proto_msgTypes[25].Exporter = func(v any, i int) any {
+ file_v1_rollout_service_proto_msgTypes[27].Exporter = func(v any, i int) any {
switch v := v.(*TaskRun_ExecutionDetail_Position); i {
case 0:
return &v.state
@@ -3590,7 +4009,7 @@ func file_v1_rollout_service_proto_init() {
return nil
}
}
- file_v1_rollout_service_proto_msgTypes[26].Exporter = func(v any, i int) any {
+ file_v1_rollout_service_proto_msgTypes[28].Exporter = func(v any, i int) any {
switch v := v.(*TaskRunLogEntry_SchemaDump); i {
case 0:
return &v.state
@@ -3602,7 +4021,7 @@ func file_v1_rollout_service_proto_init() {
return nil
}
}
- file_v1_rollout_service_proto_msgTypes[27].Exporter = func(v any, i int) any {
+ file_v1_rollout_service_proto_msgTypes[29].Exporter = func(v any, i int) any {
switch v := v.(*TaskRunLogEntry_CommandExecute); i {
case 0:
return &v.state
@@ -3614,7 +4033,7 @@ func file_v1_rollout_service_proto_init() {
return nil
}
}
- file_v1_rollout_service_proto_msgTypes[28].Exporter = func(v any, i int) any {
+ file_v1_rollout_service_proto_msgTypes[30].Exporter = func(v any, i int) any {
switch v := v.(*TaskRunLogEntry_DatabaseSync); i {
case 0:
return &v.state
@@ -3626,7 +4045,7 @@ func file_v1_rollout_service_proto_init() {
return nil
}
}
- file_v1_rollout_service_proto_msgTypes[29].Exporter = func(v any, i int) any {
+ file_v1_rollout_service_proto_msgTypes[31].Exporter = func(v any, i int) any {
switch v := v.(*TaskRunLogEntry_TaskRunStatusUpdate); i {
case 0:
return &v.state
@@ -3638,7 +4057,7 @@ func file_v1_rollout_service_proto_init() {
return nil
}
}
- file_v1_rollout_service_proto_msgTypes[30].Exporter = func(v any, i int) any {
+ file_v1_rollout_service_proto_msgTypes[32].Exporter = func(v any, i int) any {
switch v := v.(*TaskRunLogEntry_TransactionControl); i {
case 0:
return &v.state
@@ -3650,7 +4069,7 @@ func file_v1_rollout_service_proto_init() {
return nil
}
}
- file_v1_rollout_service_proto_msgTypes[31].Exporter = func(v any, i int) any {
+ file_v1_rollout_service_proto_msgTypes[33].Exporter = func(v any, i int) any {
switch v := v.(*TaskRunLogEntry_CommandExecute_CommandResponse); i {
case 0:
return &v.state
@@ -3662,6 +4081,30 @@ func file_v1_rollout_service_proto_init() {
return nil
}
}
+ file_v1_rollout_service_proto_msgTypes[34].Exporter = func(v any, i int) any {
+ switch v := v.(*TaskRunSession_Postgres); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_rollout_service_proto_msgTypes[35].Exporter = func(v any, i int) any {
+ switch v := v.(*TaskRunSession_Postgres_Session); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
}
file_v1_rollout_service_proto_msgTypes[14].OneofWrappers = []any{
(*Task_DatabaseCreate_)(nil),
@@ -3670,14 +4113,18 @@ func file_v1_rollout_service_proto_init() {
(*Task_DatabaseDataUpdate_)(nil),
(*Task_DatabaseDataExport_)(nil),
}
- file_v1_rollout_service_proto_msgTypes[22].OneofWrappers = []any{}
+ file_v1_rollout_service_proto_msgTypes[19].OneofWrappers = []any{
+ (*TaskRunSession_Postgres_)(nil),
+ }
+ file_v1_rollout_service_proto_msgTypes[24].OneofWrappers = []any{}
+ file_v1_rollout_service_proto_msgTypes[35].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_v1_rollout_service_proto_rawDesc,
NumEnums: 8,
- NumMessages: 32,
+ NumMessages: 36,
NumExtensions: 0,
NumServices: 1,
},
diff --git a/proto/generated-go/v1/rollout_service.pb.gw.go b/proto/generated-go/v1/rollout_service.pb.gw.go
index f283b1aff8..78456a80c4 100644
--- a/proto/generated-go/v1/rollout_service.pb.gw.go
+++ b/proto/generated-go/v1/rollout_service.pb.gw.go
@@ -325,6 +325,58 @@ func local_request_RolloutService_GetTaskRunLog_0(ctx context.Context, marshaler
}
+func request_RolloutService_GetTaskRunSession_0(ctx context.Context, marshaler runtime.Marshaler, client RolloutServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq GetTaskRunSessionRequest
+ var metadata runtime.ServerMetadata
+
+ var (
+ val string
+ ok bool
+ err error
+ _ = err
+ )
+
+ val, ok = pathParams["parent"]
+ if !ok {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")
+ }
+
+ protoReq.Parent, err = runtime.String(val)
+ if err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)
+ }
+
+ msg, err := client.GetTaskRunSession(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
+ return msg, metadata, err
+
+}
+
+func local_request_RolloutService_GetTaskRunSession_0(ctx context.Context, marshaler runtime.Marshaler, server RolloutServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq GetTaskRunSessionRequest
+ var metadata runtime.ServerMetadata
+
+ var (
+ val string
+ ok bool
+ err error
+ _ = err
+ )
+
+ val, ok = pathParams["parent"]
+ if !ok {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")
+ }
+
+ protoReq.Parent, err = runtime.String(val)
+ if err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)
+ }
+
+ msg, err := server.GetTaskRunSession(ctx, &protoReq)
+ return msg, metadata, err
+
+}
+
func request_RolloutService_BatchRunTasks_0(ctx context.Context, marshaler runtime.Marshaler, client RolloutServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq BatchRunTasksRequest
var metadata runtime.ServerMetadata
@@ -636,6 +688,31 @@ func RegisterRolloutServiceHandlerServer(ctx context.Context, mux *runtime.Serve
})
+ mux.Handle("GET", pattern_RolloutService_GetTaskRunSession_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ var stream runtime.ServerTransportStream
+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ var err error
+ var annotatedContext context.Context
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.RolloutService/GetTaskRunSession", runtime.WithHTTPPathPattern("/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}/session"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := local_request_RolloutService_GetTaskRunSession_0(annotatedContext, inboundMarshaler, server, req, pathParams)
+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+
+ forward_RolloutService_GetTaskRunSession_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
mux.Handle("POST", pattern_RolloutService_BatchRunTasks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -862,6 +939,28 @@ func RegisterRolloutServiceHandlerClient(ctx context.Context, mux *runtime.Serve
})
+ mux.Handle("GET", pattern_RolloutService_GetTaskRunSession_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ var err error
+ var annotatedContext context.Context
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.RolloutService/GetTaskRunSession", runtime.WithHTTPPathPattern("/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}/session"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := request_RolloutService_GetTaskRunSession_0(annotatedContext, inboundMarshaler, client, req, pathParams)
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+
+ forward_RolloutService_GetTaskRunSession_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
mux.Handle("POST", pattern_RolloutService_BatchRunTasks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -942,6 +1041,8 @@ var (
pattern_RolloutService_GetTaskRunLog_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 2, 4, 1, 0, 2, 5, 1, 0, 4, 10, 5, 6, 2, 7}, []string{"v1", "projects", "rollouts", "stages", "tasks", "taskRuns", "parent", "log"}, ""))
+ pattern_RolloutService_GetTaskRunSession_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 2, 4, 1, 0, 2, 5, 1, 0, 4, 10, 5, 6, 2, 7}, []string{"v1", "projects", "rollouts", "stages", "tasks", "taskRuns", "parent", "session"}, ""))
+
pattern_RolloutService_BatchRunTasks_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4, 2, 5}, []string{"v1", "projects", "rollouts", "stages", "parent", "tasks"}, "batchRun"))
pattern_RolloutService_BatchSkipTasks_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4, 2, 5}, []string{"v1", "projects", "rollouts", "stages", "parent", "tasks"}, "batchSkip"))
@@ -960,6 +1061,8 @@ var (
forward_RolloutService_GetTaskRunLog_0 = runtime.ForwardResponseMessage
+ forward_RolloutService_GetTaskRunSession_0 = runtime.ForwardResponseMessage
+
forward_RolloutService_BatchRunTasks_0 = runtime.ForwardResponseMessage
forward_RolloutService_BatchSkipTasks_0 = runtime.ForwardResponseMessage
diff --git a/proto/generated-go/v1/rollout_service_grpc.pb.go b/proto/generated-go/v1/rollout_service_grpc.pb.go
index 364aa5662d..010a84628a 100644
--- a/proto/generated-go/v1/rollout_service_grpc.pb.go
+++ b/proto/generated-go/v1/rollout_service_grpc.pb.go
@@ -24,6 +24,7 @@ const (
RolloutService_PreviewRollout_FullMethodName = "/bytebase.v1.RolloutService/PreviewRollout"
RolloutService_ListTaskRuns_FullMethodName = "/bytebase.v1.RolloutService/ListTaskRuns"
RolloutService_GetTaskRunLog_FullMethodName = "/bytebase.v1.RolloutService/GetTaskRunLog"
+ RolloutService_GetTaskRunSession_FullMethodName = "/bytebase.v1.RolloutService/GetTaskRunSession"
RolloutService_BatchRunTasks_FullMethodName = "/bytebase.v1.RolloutService/BatchRunTasks"
RolloutService_BatchSkipTasks_FullMethodName = "/bytebase.v1.RolloutService/BatchSkipTasks"
RolloutService_BatchCancelTaskRuns_FullMethodName = "/bytebase.v1.RolloutService/BatchCancelTaskRuns"
@@ -38,6 +39,7 @@ type RolloutServiceClient interface {
PreviewRollout(ctx context.Context, in *PreviewRolloutRequest, opts ...grpc.CallOption) (*Rollout, error)
ListTaskRuns(ctx context.Context, in *ListTaskRunsRequest, opts ...grpc.CallOption) (*ListTaskRunsResponse, error)
GetTaskRunLog(ctx context.Context, in *GetTaskRunLogRequest, opts ...grpc.CallOption) (*TaskRunLog, error)
+ GetTaskRunSession(ctx context.Context, in *GetTaskRunSessionRequest, opts ...grpc.CallOption) (*TaskRunSession, error)
BatchRunTasks(ctx context.Context, in *BatchRunTasksRequest, opts ...grpc.CallOption) (*BatchRunTasksResponse, error)
BatchSkipTasks(ctx context.Context, in *BatchSkipTasksRequest, opts ...grpc.CallOption) (*BatchSkipTasksResponse, error)
BatchCancelTaskRuns(ctx context.Context, in *BatchCancelTaskRunsRequest, opts ...grpc.CallOption) (*BatchCancelTaskRunsResponse, error)
@@ -101,6 +103,16 @@ func (c *rolloutServiceClient) GetTaskRunLog(ctx context.Context, in *GetTaskRun
return out, nil
}
+func (c *rolloutServiceClient) GetTaskRunSession(ctx context.Context, in *GetTaskRunSessionRequest, opts ...grpc.CallOption) (*TaskRunSession, error) {
+ cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
+ out := new(TaskRunSession)
+ err := c.cc.Invoke(ctx, RolloutService_GetTaskRunSession_FullMethodName, in, out, cOpts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
func (c *rolloutServiceClient) BatchRunTasks(ctx context.Context, in *BatchRunTasksRequest, opts ...grpc.CallOption) (*BatchRunTasksResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(BatchRunTasksResponse)
@@ -140,6 +152,7 @@ type RolloutServiceServer interface {
PreviewRollout(context.Context, *PreviewRolloutRequest) (*Rollout, error)
ListTaskRuns(context.Context, *ListTaskRunsRequest) (*ListTaskRunsResponse, error)
GetTaskRunLog(context.Context, *GetTaskRunLogRequest) (*TaskRunLog, error)
+ GetTaskRunSession(context.Context, *GetTaskRunSessionRequest) (*TaskRunSession, error)
BatchRunTasks(context.Context, *BatchRunTasksRequest) (*BatchRunTasksResponse, error)
BatchSkipTasks(context.Context, *BatchSkipTasksRequest) (*BatchSkipTasksResponse, error)
BatchCancelTaskRuns(context.Context, *BatchCancelTaskRunsRequest) (*BatchCancelTaskRunsResponse, error)
@@ -165,6 +178,9 @@ func (UnimplementedRolloutServiceServer) ListTaskRuns(context.Context, *ListTask
func (UnimplementedRolloutServiceServer) GetTaskRunLog(context.Context, *GetTaskRunLogRequest) (*TaskRunLog, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetTaskRunLog not implemented")
}
+func (UnimplementedRolloutServiceServer) GetTaskRunSession(context.Context, *GetTaskRunSessionRequest) (*TaskRunSession, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method GetTaskRunSession not implemented")
+}
func (UnimplementedRolloutServiceServer) BatchRunTasks(context.Context, *BatchRunTasksRequest) (*BatchRunTasksResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BatchRunTasks not implemented")
}
@@ -277,6 +293,24 @@ func _RolloutService_GetTaskRunLog_Handler(srv interface{}, ctx context.Context,
return interceptor(ctx, in, info, handler)
}
+func _RolloutService_GetTaskRunSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(GetTaskRunSessionRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(RolloutServiceServer).GetTaskRunSession(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: RolloutService_GetTaskRunSession_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(RolloutServiceServer).GetTaskRunSession(ctx, req.(*GetTaskRunSessionRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
func _RolloutService_BatchRunTasks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchRunTasksRequest)
if err := dec(in); err != nil {
@@ -358,6 +392,10 @@ var RolloutService_ServiceDesc = grpc.ServiceDesc{
MethodName: "GetTaskRunLog",
Handler: _RolloutService_GetTaskRunLog_Handler,
},
+ {
+ MethodName: "GetTaskRunSession",
+ Handler: _RolloutService_GetTaskRunSession_Handler,
+ },
{
MethodName: "BatchRunTasks",
Handler: _RolloutService_BatchRunTasks_Handler,
diff --git a/proto/v1/rollout_service.proto b/proto/v1/rollout_service.proto
index 478e1d2f50..275af4d30d 100644
--- a/proto/v1/rollout_service.proto
+++ b/proto/v1/rollout_service.proto
@@ -43,6 +43,11 @@ service RolloutService {
option (google.api.method_signature) = "parent";
}
+ rpc GetTaskRunSession(GetTaskRunSessionRequest) returns (TaskRunSession) {
+ option (google.api.http) = {get: "/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}/session"};
+ option (google.api.method_signature) = "parent";
+ }
+
rpc BatchRunTasks(BatchRunTasksRequest) returns (BatchRunTasksResponse) {
option (google.api.http) = {
post: "/v1/{parent=projects/*/rollouts/*/stages/*}/tasks:batchRun"
@@ -443,3 +448,38 @@ message TaskRunLogEntry {
string error = 2;
}
}
+
+message GetTaskRunSessionRequest {
+ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}
+ string parent = 1;
+}
+
+message TaskRunSession {
+ // Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/session
+ string name = 1;
+
+ oneof session {
+ Postgres postgres = 2;
+ }
+
+ message Postgres {
+ repeated Session sessions = 1;
+
+ // Read from `pg_stat_activity`
+ message Session {
+ string pid = 1;
+ string query = 2;
+ optional string state = 3;
+ optional string wait_event_type = 4;
+ optional string wait_event = 5;
+ optional string datname = 6;
+ optional string usename = 7;
+ string application_name = 8;
+ optional string client_addr = 9;
+ optional string client_port = 10;
+ google.protobuf.Timestamp backend_start = 11;
+ optional google.protobuf.Timestamp xact_start = 12;
+ optional google.protobuf.Timestamp query_start = 13;
+ }
+ }
+}