Skip to content

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

feat: more task run log (#12681)

p0nye1dd5d55eec6
diff --git a/frontend/src/types/proto/store/task_run_log.ts b/frontend/src/types/proto/store/task_run_log.ts
index 8f853bf7f6..249ae39d16 100644
--- a/frontend/src/types/proto/store/task_run_log.ts
+++ b/frontend/src/types/proto/store/task_run_log.ts
@@ -10,6 +10,9 @@ export interface TaskRunLog {
schemaDumpEnd: TaskRunLog_SchemaDumpEnd | undefined;
commandExecute: TaskRunLog_CommandExecute | undefined;
commandResponse: TaskRunLog_CommandResponse | undefined;
+ databaseSyncStart: TaskRunLog_DatabaseSyncStart | undefined;
+ databaseSyncEnd: TaskRunLog_DatabaseSyncEnd | undefined;
+ taskRunStatusUpdate: TaskRunLog_TaskRunStatusUpdate | undefined;
}
export enum TaskRunLog_Type {
@@ -18,6 +21,9 @@ export enum TaskRunLog_Type {
SCHEMA_DUMP_END = "SCHEMA_DUMP_END",
COMMAND_EXECUTE = "COMMAND_EXECUTE",
COMMAND_RESPONSE = "COMMAND_RESPONSE",
+ DATABASE_SYNC_START = "DATABASE_SYNC_START",
+ DATABASE_SYNC_END = "DATABASE_SYNC_END",
+ TASK_RUN_STATUS_UPDATE = "TASK_RUN_STATUS_UPDATE",
UNRECOGNIZED = "UNRECOGNIZED",
}
@@ -38,6 +44,15 @@ export function taskRunLog_TypeFromJSON(object: any): TaskRunLog_Type {
case 4:
case "COMMAND_RESPONSE":
return TaskRunLog_Type.COMMAND_RESPONSE;
+ case 5:
+ case "DATABASE_SYNC_START":
+ return TaskRunLog_Type.DATABASE_SYNC_START;
+ case 6:
+ case "DATABASE_SYNC_END":
+ return TaskRunLog_Type.DATABASE_SYNC_END;
+ case 7:
+ case "TASK_RUN_STATUS_UPDATE":
+ return TaskRunLog_Type.TASK_RUN_STATUS_UPDATE;
case -1:
case "UNRECOGNIZED":
default:
@@ -57,6 +72,12 @@ export function taskRunLog_TypeToJSON(object: TaskRunLog_Type): string {
return "COMMAND_EXECUTE";
case TaskRunLog_Type.COMMAND_RESPONSE:
return "COMMAND_RESPONSE";
+ case TaskRunLog_Type.DATABASE_SYNC_START:
+ return "DATABASE_SYNC_START";
+ case TaskRunLog_Type.DATABASE_SYNC_END:
+ return "DATABASE_SYNC_END";
+ case TaskRunLog_Type.TASK_RUN_STATUS_UPDATE:
+ return "TASK_RUN_STATUS_UPDATE";
case TaskRunLog_Type.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
@@ -75,6 +96,12 @@ export function taskRunLog_TypeToNumber(object: TaskRunLog_Type): number {
return 3;
case TaskRunLog_Type.COMMAND_RESPONSE:
return 4;
+ case TaskRunLog_Type.DATABASE_SYNC_START:
+ return 5;
+ case TaskRunLog_Type.DATABASE_SYNC_END:
+ return 6;
+ case TaskRunLog_Type.TASK_RUN_STATUS_UPDATE:
+ return 7;
case TaskRunLog_Type.UNRECOGNIZED:
default:
return -1;
@@ -105,6 +132,72 @@ export interface TaskRunLog_CommandResponse {
allAffectedRows: number[];
}
+export interface TaskRunLog_DatabaseSyncStart {
+}
+
+export interface TaskRunLog_DatabaseSyncEnd {
+ error: string;
+}
+
+export interface TaskRunLog_TaskRunStatusUpdate {
+ status: TaskRunLog_TaskRunStatusUpdate_Status;
+}
+
+export enum TaskRunLog_TaskRunStatusUpdate_Status {
+ STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
+ /** RUNNING_WAITING - the task run is ready to be executed by the scheduler */
+ RUNNING_WAITING = "RUNNING_WAITING",
+ /** RUNNING_RUNNING - the task run is being executed by the scheduler */
+ RUNNING_RUNNING = "RUNNING_RUNNING",
+ UNRECOGNIZED = "UNRECOGNIZED",
+}
+
+export function taskRunLog_TaskRunStatusUpdate_StatusFromJSON(object: any): TaskRunLog_TaskRunStatusUpdate_Status {
+ switch (object) {
+ case 0:
+ case "STATUS_UNSPECIFIED":
+ return TaskRunLog_TaskRunStatusUpdate_Status.STATUS_UNSPECIFIED;
+ case 1:
+ case "RUNNING_WAITING":
+ return TaskRunLog_TaskRunStatusUpdate_Status.RUNNING_WAITING;
+ case 2:
+ case "RUNNING_RUNNING":
+ return TaskRunLog_TaskRunStatusUpdate_Status.RUNNING_RUNNING;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return TaskRunLog_TaskRunStatusUpdate_Status.UNRECOGNIZED;
+ }
+}
+
+export function taskRunLog_TaskRunStatusUpdate_StatusToJSON(object: TaskRunLog_TaskRunStatusUpdate_Status): string {
+ switch (object) {
+ case TaskRunLog_TaskRunStatusUpdate_Status.STATUS_UNSPECIFIED:
+ return "STATUS_UNSPECIFIED";
+ case TaskRunLog_TaskRunStatusUpdate_Status.RUNNING_WAITING:
+ return "RUNNING_WAITING";
+ case TaskRunLog_TaskRunStatusUpdate_Status.RUNNING_RUNNING:
+ return "RUNNING_RUNNING";
+ case TaskRunLog_TaskRunStatusUpdate_Status.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export function taskRunLog_TaskRunStatusUpdate_StatusToNumber(object: TaskRunLog_TaskRunStatusUpdate_Status): number {
+ switch (object) {
+ case TaskRunLog_TaskRunStatusUpdate_Status.STATUS_UNSPECIFIED:
+ return 0;
+ case TaskRunLog_TaskRunStatusUpdate_Status.RUNNING_WAITING:
+ return 1;
+ case TaskRunLog_TaskRunStatusUpdate_Status.RUNNING_RUNNING:
+ return 2;
+ case TaskRunLog_TaskRunStatusUpdate_Status.UNRECOGNIZED:
+ default:
+ return -1;
+ }
+}
+
function createBaseTaskRunLog(): TaskRunLog {
return {
type: TaskRunLog_Type.TYPE_UNSPECIFIED,
@@ -112,6 +205,9 @@ function createBaseTaskRunLog(): TaskRunLog {
schemaDumpEnd: undefined,
commandExecute: undefined,
commandResponse: undefined,
+ databaseSyncStart: undefined,
+ databaseSyncEnd: undefined,
+ taskRunStatusUpdate: undefined,
};
}
@@ -132,6 +228,15 @@ export const TaskRunLog = {
if (message.commandResponse !== undefined) {
TaskRunLog_CommandResponse.encode(message.commandResponse, writer.uint32(42).fork()).ldelim();
}
+ if (message.databaseSyncStart !== undefined) {
+ TaskRunLog_DatabaseSyncStart.encode(message.databaseSyncStart, writer.uint32(50).fork()).ldelim();
+ }
+ if (message.databaseSyncEnd !== undefined) {
+ TaskRunLog_DatabaseSyncEnd.encode(message.databaseSyncEnd, writer.uint32(58).fork()).ldelim();
+ }
+ if (message.taskRunStatusUpdate !== undefined) {
+ TaskRunLog_TaskRunStatusUpdate.encode(message.taskRunStatusUpdate, writer.uint32(66).fork()).ldelim();
+ }
return writer;
},
@@ -177,6 +282,27 @@ export const TaskRunLog = {
message.commandResponse = TaskRunLog_CommandResponse.decode(reader, reader.uint32());
continue;
+ case 6:
+ if (tag !== 50) {
+ break;
+ }
+
+ message.databaseSyncStart = TaskRunLog_DatabaseSyncStart.decode(reader, reader.uint32());
+ continue;
+ case 7:
+ if (tag !== 58) {
+ break;
+ }
+
+ message.databaseSyncEnd = TaskRunLog_DatabaseSyncEnd.decode(reader, reader.uint32());
+ continue;
+ case 8:
+ if (tag !== 66) {
+ break;
+ }
+
+ message.taskRunStatusUpdate = TaskRunLog_TaskRunStatusUpdate.decode(reader, reader.uint32());
+ continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
@@ -199,6 +325,15 @@ export const TaskRunLog = {
commandResponse: isSet(object.commandResponse)
? TaskRunLog_CommandResponse.fromJSON(object.commandResponse)
: undefined,
+ databaseSyncStart: isSet(object.databaseSyncStart)
+ ? TaskRunLog_DatabaseSyncStart.fromJSON(object.databaseSyncStart)
+ : undefined,
+ databaseSyncEnd: isSet(object.databaseSyncEnd)
+ ? TaskRunLog_DatabaseSyncEnd.fromJSON(object.databaseSyncEnd)
+ : undefined,
+ taskRunStatusUpdate: isSet(object.taskRunStatusUpdate)
+ ? TaskRunLog_TaskRunStatusUpdate.fromJSON(object.taskRunStatusUpdate)
+ : undefined,
};
},
@@ -219,6 +354,15 @@ export const TaskRunLog = {
if (message.commandResponse !== undefined) {
obj.commandResponse = TaskRunLog_CommandResponse.toJSON(message.commandResponse);
}
+ if (message.databaseSyncStart !== undefined) {
+ obj.databaseSyncStart = TaskRunLog_DatabaseSyncStart.toJSON(message.databaseSyncStart);
+ }
+ if (message.databaseSyncEnd !== undefined) {
+ obj.databaseSyncEnd = TaskRunLog_DatabaseSyncEnd.toJSON(message.databaseSyncEnd);
+ }
+ if (message.taskRunStatusUpdate !== undefined) {
+ obj.taskRunStatusUpdate = TaskRunLog_TaskRunStatusUpdate.toJSON(message.taskRunStatusUpdate);
+ }
return obj;
},
@@ -240,6 +384,15 @@ export const TaskRunLog = {
message.commandResponse = (object.commandResponse !== undefined && object.commandResponse !== null)
? TaskRunLog_CommandResponse.fromPartial(object.commandResponse)
: undefined;
+ message.databaseSyncStart = (object.databaseSyncStart !== undefined && object.databaseSyncStart !== null)
+ ? TaskRunLog_DatabaseSyncStart.fromPartial(object.databaseSyncStart)
+ : undefined;
+ message.databaseSyncEnd = (object.databaseSyncEnd !== undefined && object.databaseSyncEnd !== null)
+ ? TaskRunLog_DatabaseSyncEnd.fromPartial(object.databaseSyncEnd)
+ : undefined;
+ message.taskRunStatusUpdate = (object.taskRunStatusUpdate !== undefined && object.taskRunStatusUpdate !== null)
+ ? TaskRunLog_TaskRunStatusUpdate.fromPartial(object.taskRunStatusUpdate)
+ : undefined;
return message;
},
};
@@ -549,6 +702,167 @@ export const TaskRunLog_CommandResponse = {
},
};
+function createBaseTaskRunLog_DatabaseSyncStart(): TaskRunLog_DatabaseSyncStart {
+ return {};
+}
+
+export const TaskRunLog_DatabaseSyncStart = {
+ encode(_: TaskRunLog_DatabaseSyncStart, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): TaskRunLog_DatabaseSyncStart {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseTaskRunLog_DatabaseSyncStart();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(_: any): TaskRunLog_DatabaseSyncStart {
+ return {};
+ },
+
+ toJSON(_: TaskRunLog_DatabaseSyncStart): unknown {
+ const obj: any = {};
+ return obj;
+ },
+
+ create(base?: DeepPartial<TaskRunLog_DatabaseSyncStart>): TaskRunLog_DatabaseSyncStart {
+ return TaskRunLog_DatabaseSyncStart.fromPartial(base ?? {});
+ },
+ fromPartial(_: DeepPartial<TaskRunLog_DatabaseSyncStart>): TaskRunLog_DatabaseSyncStart {
+ const message = createBaseTaskRunLog_DatabaseSyncStart();
+ return message;
+ },
+};
+
+function createBaseTaskRunLog_DatabaseSyncEnd(): TaskRunLog_DatabaseSyncEnd {
+ return { error: "" };
+}
+
+export const TaskRunLog_DatabaseSyncEnd = {
+ encode(message: TaskRunLog_DatabaseSyncEnd, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.error !== "") {
+ writer.uint32(10).string(message.error);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): TaskRunLog_DatabaseSyncEnd {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseTaskRunLog_DatabaseSyncEnd();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.error = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): TaskRunLog_DatabaseSyncEnd {
+ return { error: isSet(object.error) ? globalThis.String(object.error) : "" };
+ },
+
+ toJSON(message: TaskRunLog_DatabaseSyncEnd): unknown {
+ const obj: any = {};
+ if (message.error !== "") {
+ obj.error = message.error;
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<TaskRunLog_DatabaseSyncEnd>): TaskRunLog_DatabaseSyncEnd {
+ return TaskRunLog_DatabaseSyncEnd.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<TaskRunLog_DatabaseSyncEnd>): TaskRunLog_DatabaseSyncEnd {
+ const message = createBaseTaskRunLog_DatabaseSyncEnd();
+ message.error = object.error ?? "";
+ return message;
+ },
+};
+
+function createBaseTaskRunLog_TaskRunStatusUpdate(): TaskRunLog_TaskRunStatusUpdate {
+ return { status: TaskRunLog_TaskRunStatusUpdate_Status.STATUS_UNSPECIFIED };
+}
+
+export const TaskRunLog_TaskRunStatusUpdate = {
+ encode(message: TaskRunLog_TaskRunStatusUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.status !== TaskRunLog_TaskRunStatusUpdate_Status.STATUS_UNSPECIFIED) {
+ writer.uint32(8).int32(taskRunLog_TaskRunStatusUpdate_StatusToNumber(message.status));
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): TaskRunLog_TaskRunStatusUpdate {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseTaskRunLog_TaskRunStatusUpdate();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 8) {
+ break;
+ }
+
+ message.status = taskRunLog_TaskRunStatusUpdate_StatusFromJSON(reader.int32());
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): TaskRunLog_TaskRunStatusUpdate {
+ return {
+ status: isSet(object.status)
+ ? taskRunLog_TaskRunStatusUpdate_StatusFromJSON(object.status)
+ : TaskRunLog_TaskRunStatusUpdate_Status.STATUS_UNSPECIFIED,
+ };
+ },
+
+ toJSON(message: TaskRunLog_TaskRunStatusUpdate): unknown {
+ const obj: any = {};
+ if (message.status !== TaskRunLog_TaskRunStatusUpdate_Status.STATUS_UNSPECIFIED) {
+ obj.status = taskRunLog_TaskRunStatusUpdate_StatusToJSON(message.status);
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<TaskRunLog_TaskRunStatusUpdate>): TaskRunLog_TaskRunStatusUpdate {
+ return TaskRunLog_TaskRunStatusUpdate.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<TaskRunLog_TaskRunStatusUpdate>): TaskRunLog_TaskRunStatusUpdate {
+ const message = createBaseTaskRunLog_TaskRunStatusUpdate();
+ message.status = object.status ?? TaskRunLog_TaskRunStatusUpdate_Status.STATUS_UNSPECIFIED;
+ return message;
+ },
+};
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T
diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yaml
index 327d62b3e6..af7be3b66f 100644
--- a/proto/gen/grpc-doc/openapi.yaml
+++ b/proto/gen/grpc-doc/openapi.yaml
@@ -13404,6 +13404,9 @@ components:
- SCHEMA_DUMP_END
- COMMAND_EXECUTE
- COMMAND_RESPONSE
+ - DATABASE_SYNC_START
+ - DATABASE_SYNC_END
+ - TASK_RUN_STATUS_UPDATE
type: string
format: enum
schemaDumpStart:
@@ -13414,6 +13417,12 @@ components:
$ref: '#/components/schemas/TaskRunLog_CommandExecute'
commandResponse:
$ref: '#/components/schemas/TaskRunLog_CommandResponse'
+ databaseSyncStart:
+ $ref: '#/components/schemas/TaskRunLog_DatabaseSyncStart'
+ databaseSyncEnd:
+ $ref: '#/components/schemas/TaskRunLog_DatabaseSyncEnd'
+ taskRunStatusUpdate:
+ $ref: '#/components/schemas/TaskRunLog_TaskRunStatusUpdate'
TaskRunLog_CommandExecute:
type: object
properties:
@@ -13445,6 +13454,14 @@ components:
description: |-
`all_affected_rows` is the affected rows of each command.
`all_affected_rows` may be unavailable if the database driver doesn't support it. Caller should fallback to `affected_rows` in that case.
+ TaskRunLog_DatabaseSyncEnd:
+ type: object
+ properties:
+ error:
+ type: string
+ TaskRunLog_DatabaseSyncStart:
+ type: object
+ properties: {}
TaskRunLog_SchemaDumpEnd:
type: object
properties:
@@ -13453,6 +13470,16 @@ components:
TaskRunLog_SchemaDumpStart:
type: object
properties: {}
+ TaskRunLog_TaskRunStatusUpdate:
+ type: object
+ properties:
+ status:
+ enum:
+ - STATUS_UNSPECIFIED
+ - RUNNING_WAITING
+ - RUNNING_RUNNING
+ type: string
+ format: enum
TaskRun_ExecutionDetail:
type: object
properties:
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index 82e9b3279d..2dc38e0f0d 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -274,9 +274,13 @@
- [TaskRunLog](#bytebase-store-TaskRunLog)
- [TaskRunLog.CommandExecute](#bytebase-store-TaskRunLog-CommandExecute)
- [TaskRunLog.CommandResponse](#bytebase-store-TaskRunLog-CommandResponse)
+ - [TaskRunLog.DatabaseSyncEnd](#bytebase-store-TaskRunLog-DatabaseSyncEnd)
+ - [TaskRunLog.DatabaseSyncStart](#bytebase-store-TaskRunLog-DatabaseSyncStart)
- [TaskRunLog.SchemaDumpEnd](#bytebase-store-TaskRunLog-SchemaDumpEnd)
- [TaskRunLog.SchemaDumpStart](#bytebase-store-TaskRunLog-SchemaDumpStart)
+ - [TaskRunLog.TaskRunStatusUpdate](#bytebase-store-TaskRunLog-TaskRunStatusUpdate)
+ - [TaskRunLog.TaskRunStatusUpdate.Status](#bytebase-store-TaskRunLog-TaskRunStatusUpdate-Status)
- [TaskRunLog.Type](#bytebase-store-TaskRunLog-Type)
- [store/user.proto](#store_user-proto)
@@ -4168,6 +4172,9 @@ The following fields are used for error reporting.
| schema_dump_end | [TaskRunLog.SchemaDumpEnd](#bytebase-store-TaskRunLog-SchemaDumpEnd) | | |
| command_execute | [TaskRunLog.CommandExecute](#bytebase-store-TaskRunLog-CommandExecute) | | |
| command_response | [TaskRunLog.CommandResponse](#bytebase-store-TaskRunLog-CommandResponse) | | |
+| database_sync_start | [TaskRunLog.DatabaseSyncStart](#bytebase-store-TaskRunLog-DatabaseSyncStart) | | |
+| database_sync_end | [TaskRunLog.DatabaseSyncEnd](#bytebase-store-TaskRunLog-DatabaseSyncEnd) | | |
+| task_run_status_update | [TaskRunLog.TaskRunStatusUpdate](#bytebase-store-TaskRunLog-TaskRunStatusUpdate) | | |
@@ -4207,6 +4214,31 @@ The following fields are used for error reporting.
+<a name="bytebase-store-TaskRunLog-DatabaseSyncEnd"></a>
+
+### TaskRunLog.DatabaseSyncEnd
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| error | [string](#string) | | |
+
+
+
+
+
+
+<a name="bytebase-store-TaskRunLog-DatabaseSyncStart"></a>
+
+### TaskRunLog.DatabaseSyncStart
+
+
+
+
+
+
+
<a name="bytebase-store-TaskRunLog-SchemaDumpEnd"></a>
### TaskRunLog.SchemaDumpEnd
@@ -4231,9 +4263,37 @@ The following fields are used for error reporting.
+
+<a name="bytebase-store-TaskRunLog-TaskRunStatusUpdate"></a>
+
+### TaskRunLog.TaskRunStatusUpdate
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| status | [TaskRunLog.TaskRunStatusUpdate.Status](#bytebase-store-TaskRunLog-TaskRunStatusUpdate-Status) | | |
+
+
+
+
+
+<a name="bytebase-store-TaskRunLog-TaskRunStatusUpdate-Status"></a>
+
+### TaskRunLog.TaskRunStatusUpdate.Status
+
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| STATUS_UNSPECIFIED | 0 | |
+| RUNNING_WAITING | 1 | the task run is ready to be executed by the scheduler |
+| RUNNING_RUNNING | 2 | the task run is being executed by the scheduler |
+
+
+
<a name="bytebase-store-TaskRunLog-Type"></a>
### TaskRunLog.Type
@@ -4246,6 +4306,9 @@ The following fields are used for error reporting.
| SCHEMA_DUMP_END | 2 | |
| COMMAND_EXECUTE | 3 | |
| COMMAND_RESPONSE | 4 | |
+| DATABASE_SYNC_START | 5 | |
+| DATABASE_SYNC_END | 6 | |
+| TASK_RUN_STATUS_UPDATE | 7 | |
diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.html
index f3fe1c2e8e..fbe062b1e1 100644
--- a/proto/gen/grpc-doc/store/index.html
+++ b/proto/gen/grpc-doc/store/index.html
@@ -1286,6 +1286,14 @@
<a href="#bytebase.store.TaskRunLog.CommandResponse"><span class="badge">M</span>TaskRunLog.CommandResponse</a>
</li>
+ <li>
+ <a href="#bytebase.store.TaskRunLog.DatabaseSyncEnd"><span class="badge">M</span>TaskRunLog.DatabaseSyncEnd</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.TaskRunLog.DatabaseSyncStart"><span class="badge">M</span>TaskRunLog.DatabaseSyncStart</a>
+ </li>
+
<li>
<a href="#bytebase.store.TaskRunLog.SchemaDumpEnd"><span class="badge">M</span>TaskRunLog.SchemaDumpEnd</a>
</li>
@@ -1294,6 +1302,14 @@
<a href="#bytebase.store.TaskRunLog.SchemaDumpStart"><span class="badge">M</span>TaskRunLog.SchemaDumpStart</a>
</li>
+ <li>
+ <a href="#bytebase.store.TaskRunLog.TaskRunStatusUpdate"><span class="badge">M</span>TaskRunLog.TaskRunStatusUpdate</a>
+ </li>
+
+
+ <li>
+ <a href="#bytebase.store.TaskRunLog.TaskRunStatusUpdate.Status"><span class="badge">E</span>TaskRunLog.TaskRunStatusUpdate.Status</a>
+ </li>
<li>
<a href="#bytebase.store.TaskRunLog.Type"><span class="badge">E</span>TaskRunLog.Type</a>
@@ -10285,6 +10301,27 @@ Default to this mode.</p></td>
<td><p> </p></td>
</tr>
+ <tr>
+ <td>database_sync_start</td>
+ <td><a href="#bytebase.store.TaskRunLog.DatabaseSyncStart">TaskRunLog.DatabaseSyncStart</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>database_sync_end</td>
+ <td><a href="#bytebase.store.TaskRunLog.DatabaseSyncEnd">TaskRunLog.DatabaseSyncEnd</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>task_run_status_update</td>
+ <td><a href="#bytebase.store.TaskRunLog.TaskRunStatusUpdate">TaskRunLog.TaskRunStatusUpdate</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
</tbody>
</table>
@@ -10362,6 +10399,37 @@ Default to this mode.</p></td>
+ <h3 id="bytebase.store.TaskRunLog.DatabaseSyncEnd">TaskRunLog.DatabaseSyncEnd</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>error</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.TaskRunLog.DatabaseSyncStart">TaskRunLog.DatabaseSyncStart</h3>
+ <p></p>
+
+
+
+
+
<h3 id="bytebase.store.TaskRunLog.SchemaDumpEnd">TaskRunLog.SchemaDumpEnd</h3>
<p></p>
@@ -10393,7 +10461,60 @@ Default to this mode.</p></td>
+ <h3 id="bytebase.store.TaskRunLog.TaskRunStatusUpdate">TaskRunLog.TaskRunStatusUpdate</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>status</td>
+ <td><a href="#bytebase.store.TaskRunLog.TaskRunStatusUpdate.Status">TaskRunLog.TaskRunStatusUpdate.Status</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+
+
+ <h3 id="bytebase.store.TaskRunLog.TaskRunStatusUpdate.Status">TaskRunLog.TaskRunStatusUpdate.Status</h3>
+ <p></p>
+ <table class="enum-table">
+ <thead>
+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>STATUS_UNSPECIFIED</td>
+ <td>0</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>RUNNING_WAITING</td>
+ <td>1</td>
+ <td><p>the task run is ready to be executed by the scheduler</p></td>
+ </tr>
+
+ <tr>
+ <td>RUNNING_RUNNING</td>
+ <td>2</td>
+ <td><p>the task run is being executed by the scheduler</p></td>
+ </tr>
+
+ </tbody>
+ </table>
<h3 id="bytebase.store.TaskRunLog.Type">TaskRunLog.Type</h3>
<p></p>
@@ -10433,6 +10554,24 @@ Default to this mode.</p></td>
<td><p></p></td>
</tr>
+ <tr>
+ <td>DATABASE_SYNC_START</td>
+ <td>5</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>DATABASE_SYNC_END</td>
+ <td>6</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>TASK_RUN_STATUS_UPDATE</td>
+ <td>7</td>
+ <td><p></p></td>
+ </tr>
+
</tbody>
</table>
diff --git a/proto/generated-go/store/task_run_log.pb.go b/proto/generated-go/store/task_run_log.pb.go
index d2bf0a8623..d77fc64b86 100644
--- a/proto/generated-go/store/task_run_log.pb.go
+++ b/proto/generated-go/store/task_run_log.pb.go
@@ -23,11 +23,14 @@ const (
type TaskRunLog_Type int32
const (
- TaskRunLog_TYPE_UNSPECIFIED TaskRunLog_Type = 0
- TaskRunLog_SCHEMA_DUMP_START TaskRunLog_Type = 1
- TaskRunLog_SCHEMA_DUMP_END TaskRunLog_Type = 2
- TaskRunLog_COMMAND_EXECUTE TaskRunLog_Type = 3
- TaskRunLog_COMMAND_RESPONSE TaskRunLog_Type = 4
+ TaskRunLog_TYPE_UNSPECIFIED TaskRunLog_Type = 0
+ TaskRunLog_SCHEMA_DUMP_START TaskRunLog_Type = 1
+ TaskRunLog_SCHEMA_DUMP_END TaskRunLog_Type = 2
+ TaskRunLog_COMMAND_EXECUTE TaskRunLog_Type = 3
+ TaskRunLog_COMMAND_RESPONSE TaskRunLog_Type = 4
+ TaskRunLog_DATABASE_SYNC_START TaskRunLog_Type = 5
+ TaskRunLog_DATABASE_SYNC_END TaskRunLog_Type = 6
+ TaskRunLog_TASK_RUN_STATUS_UPDATE TaskRunLog_Type = 7
)
// Enum value maps for TaskRunLog_Type.
@@ -38,13 +41,19 @@ var (
2: "SCHEMA_DUMP_END",
3: "COMMAND_EXECUTE",
4: "COMMAND_RESPONSE",
+ 5: "DATABASE_SYNC_START",
+ 6: "DATABASE_SYNC_END",
+ 7: "TASK_RUN_STATUS_UPDATE",
}
TaskRunLog_Type_value = map[string]int32{
- "TYPE_UNSPECIFIED": 0,
- "SCHEMA_DUMP_START": 1,
- "SCHEMA_DUMP_END": 2,
- "COMMAND_EXECUTE": 3,
- "COMMAND_RESPONSE": 4,
+ "TYPE_UNSPECIFIED": 0,
+ "SCHEMA_DUMP_START": 1,
+ "SCHEMA_DUMP_END": 2,
+ "COMMAND_EXECUTE": 3,
+ "COMMAND_RESPONSE": 4,
+ "DATABASE_SYNC_START": 5,
+ "DATABASE_SYNC_END": 6,
+ "TASK_RUN_STATUS_UPDATE": 7,
}
)
@@ -75,16 +84,70 @@ func (TaskRunLog_Type) EnumDescriptor() ([]byte, []int) {
return file_store_task_run_log_proto_rawDescGZIP(), []int{0, 0}
}
+type TaskRunLog_TaskRunStatusUpdate_Status int32
+
+const (
+ TaskRunLog_TaskRunStatusUpdate_STATUS_UNSPECIFIED TaskRunLog_TaskRunStatusUpdate_Status = 0
+ // the task run is ready to be executed by the scheduler
+ TaskRunLog_TaskRunStatusUpdate_RUNNING_WAITING TaskRunLog_TaskRunStatusUpdate_Status = 1
+ // the task run is being executed by the scheduler
+ TaskRunLog_TaskRunStatusUpdate_RUNNING_RUNNING TaskRunLog_TaskRunStatusUpdate_Status = 2
+)
+
+// Enum value maps for TaskRunLog_TaskRunStatusUpdate_Status.
+var (
+ TaskRunLog_TaskRunStatusUpdate_Status_name = map[int32]string{
+ 0: "STATUS_UNSPECIFIED",
+ 1: "RUNNING_WAITING",
+ 2: "RUNNING_RUNNING",
+ }
+ TaskRunLog_TaskRunStatusUpdate_Status_value = map[string]int32{
+ "STATUS_UNSPECIFIED": 0,
+ "RUNNING_WAITING": 1,
+ "RUNNING_RUNNING": 2,
+ }
+)
+
+func (x TaskRunLog_TaskRunStatusUpdate_Status) Enum() *TaskRunLog_TaskRunStatusUpdate_Status {
+ p := new(TaskRunLog_TaskRunStatusUpdate_Status)
+ *p = x
+ return p
+}
+
+func (x TaskRunLog_TaskRunStatusUpdate_Status) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (TaskRunLog_TaskRunStatusUpdate_Status) Descriptor() protoreflect.EnumDescriptor {
+ return file_store_task_run_log_proto_enumTypes[1].Descriptor()
+}
+
+func (TaskRunLog_TaskRunStatusUpdate_Status) Type() protoreflect.EnumType {
+ return &file_store_task_run_log_proto_enumTypes[1]
+}
+
+func (x TaskRunLog_TaskRunStatusUpdate_Status) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use TaskRunLog_TaskRunStatusUpdate_Status.Descriptor instead.
+func (TaskRunLog_TaskRunStatusUpdate_Status) EnumDescriptor() ([]byte, []int) {
+ return file_store_task_run_log_proto_rawDescGZIP(), []int{0, 6, 0}
+}
+
type TaskRunLog struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
- Type TaskRunLog_Type `protobuf:"varint,1,opt,name=type,proto3,enum=bytebase.store.TaskRunLog_Type" json:"type,omitempty"`
- SchemaDumpStart *TaskRunLog_SchemaDumpStart `protobuf:"bytes,2,opt,name=schema_dump_start,json=schemaDumpStart,proto3" json:"schema_dump_start,omitempty"`
- SchemaDumpEnd *TaskRunLog_SchemaDumpEnd `protobuf:"bytes,3,opt,name=schema_dump_end,json=schemaDumpEnd,proto3" json:"schema_dump_end,omitempty"`
- CommandExecute *TaskRunLog_CommandExecute `protobuf:"bytes,4,opt,name=command_execute,json=commandExecute,proto3" json:"command_execute,omitempty"`
- CommandResponse *TaskRunLog_CommandResponse `protobuf:"bytes,5,opt,name=command_response,json=commandResponse,proto3" json:"command_response,omitempty"`
+ Type TaskRunLog_Type `protobuf:"varint,1,opt,name=type,proto3,enum=bytebase.store.TaskRunLog_Type" json:"type,omitempty"`
+ SchemaDumpStart *TaskRunLog_SchemaDumpStart `protobuf:"bytes,2,opt,name=schema_dump_start,json=schemaDumpStart,proto3" json:"schema_dump_start,omitempty"`
+ SchemaDumpEnd *TaskRunLog_SchemaDumpEnd `protobuf:"bytes,3,opt,name=schema_dump_end,json=schemaDumpEnd,proto3" json:"schema_dump_end,omitempty"`
+ CommandExecute *TaskRunLog_CommandExecute `protobuf:"bytes,4,opt,name=command_execute,json=commandExecute,proto3" json:"command_execute,omitempty"`
+ CommandResponse *TaskRunLog_CommandResponse `protobuf:"bytes,5,opt,name=command_response,json=commandResponse,proto3" json:"command_response,omitempty"`
+ DatabaseSyncStart *TaskRunLog_DatabaseSyncStart `protobuf:"bytes,6,opt,name=database_sync_start,json=databaseSyncStart,proto3" json:"database_sync_start,omitempty"`
+ DatabaseSyncEnd *TaskRunLog_DatabaseSyncEnd `protobuf:"bytes,7,opt,name=database_sync_end,json=databaseSyncEnd,proto3" json:"database_sync_end,omitempty"`
+ TaskRunStatusUpdate *TaskRunLog_TaskRunStatusUpdate `protobuf:"bytes,8,opt,name=task_run_status_update,json=taskRunStatusUpdate,proto3" json:"task_run_status_update,omitempty"`
}
func (x *TaskRunLog) Reset() {
@@ -154,6 +217,27 @@ func (x *TaskRunLog) GetCommandResponse() *TaskRunLog_CommandResponse {
return nil
}
+func (x *TaskRunLog) GetDatabaseSyncStart() *TaskRunLog_DatabaseSyncStart {
+ if x != nil {
+ return x.DatabaseSyncStart
+ }
+ return nil
+}
+
+func (x *TaskRunLog) GetDatabaseSyncEnd() *TaskRunLog_DatabaseSyncEnd {
+ if x != nil {
+ return x.DatabaseSyncEnd
+ }
+ return nil
+}
+
+func (x *TaskRunLog) GetTaskRunStatusUpdate() *TaskRunLog_TaskRunStatusUpdate {
+ if x != nil {
+ return x.TaskRunStatusUpdate
+ }
+ return nil
+}
+
type TaskRunLog_SchemaDumpStart struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -361,12 +445,144 @@ func (x *TaskRunLog_CommandResponse) GetAllAffectedRows() []int32 {
return nil
}
+type TaskRunLog_DatabaseSyncStart struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *TaskRunLog_DatabaseSyncStart) Reset() {
+ *x = TaskRunLog_DatabaseSyncStart{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_task_run_log_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *TaskRunLog_DatabaseSyncStart) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*TaskRunLog_DatabaseSyncStart) ProtoMessage() {}
+
+func (x *TaskRunLog_DatabaseSyncStart) ProtoReflect() protoreflect.Message {
+ mi := &file_store_task_run_log_proto_msgTypes[5]
+ 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 TaskRunLog_DatabaseSyncStart.ProtoReflect.Descriptor instead.
+func (*TaskRunLog_DatabaseSyncStart) Descriptor() ([]byte, []int) {
+ return file_store_task_run_log_proto_rawDescGZIP(), []int{0, 4}
+}
+
+type TaskRunLog_DatabaseSyncEnd struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
+}
+
+func (x *TaskRunLog_DatabaseSyncEnd) Reset() {
+ *x = TaskRunLog_DatabaseSyncEnd{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_task_run_log_proto_msgTypes[6]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *TaskRunLog_DatabaseSyncEnd) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*TaskRunLog_DatabaseSyncEnd) ProtoMessage() {}
+
+func (x *TaskRunLog_DatabaseSyncEnd) ProtoReflect() protoreflect.Message {
+ mi := &file_store_task_run_log_proto_msgTypes[6]
+ 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 TaskRunLog_DatabaseSyncEnd.ProtoReflect.Descriptor instead.
+func (*TaskRunLog_DatabaseSyncEnd) Descriptor() ([]byte, []int) {
+ return file_store_task_run_log_proto_rawDescGZIP(), []int{0, 5}
+}
+
+func (x *TaskRunLog_DatabaseSyncEnd) GetError() string {
+ if x != nil {
+ return x.Error
+ }
+ return ""
+}
+
+type TaskRunLog_TaskRunStatusUpdate struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Status TaskRunLog_TaskRunStatusUpdate_Status `protobuf:"varint,1,opt,name=status,proto3,enum=bytebase.store.TaskRunLog_TaskRunStatusUpdate_Status" json:"status,omitempty"`
+}
+
+func (x *TaskRunLog_TaskRunStatusUpdate) Reset() {
+ *x = TaskRunLog_TaskRunStatusUpdate{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_task_run_log_proto_msgTypes[7]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *TaskRunLog_TaskRunStatusUpdate) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*TaskRunLog_TaskRunStatusUpdate) ProtoMessage() {}
+
+func (x *TaskRunLog_TaskRunStatusUpdate) ProtoReflect() protoreflect.Message {
+ mi := &file_store_task_run_log_proto_msgTypes[7]
+ 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 TaskRunLog_TaskRunStatusUpdate.ProtoReflect.Descriptor instead.
+func (*TaskRunLog_TaskRunStatusUpdate) Descriptor() ([]byte, []int) {
+ return file_store_task_run_log_proto_rawDescGZIP(), []int{0, 6}
+}
+
+func (x *TaskRunLog_TaskRunStatusUpdate) GetStatus() TaskRunLog_TaskRunStatusUpdate_Status {
+ if x != nil {
+ return x.Status
+ }
+ return TaskRunLog_TaskRunStatusUpdate_STATUS_UNSPECIFIED
+}
+
var File_store_task_run_log_proto protoreflect.FileDescriptor
var file_store_task_run_log_proto_rawDesc = []byte{
0x0a, 0x18, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72, 0x75, 0x6e,
0x5f, 0x6c, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22, 0xa4, 0x06, 0x0a, 0x0a, 0x54,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22, 0xfd, 0x0a, 0x0a, 0x0a, 0x54,
0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x12, 0x33, 0x0a, 0x04, 0x74, 0x79, 0x70,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e,
@@ -392,33 +608,71 @@ var file_store_task_run_log_proto_rawDesc = []byte{
0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c,
0x6f, 0x67, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x52, 0x0f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f,
- 0x6e, 0x73, 0x65, 0x1a, 0x11, 0x0a, 0x0f, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x75, 0x6d,
- 0x70, 0x53, 0x74, 0x61, 0x72, 0x74, 0x1a, 0x25, 0x0a, 0x0d, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,
- 0x44, 0x75, 0x6d, 0x70, 0x45, 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x1a, 0x39, 0x0a,
- 0x0e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x12,
- 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78,
- 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,
- 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x1a, 0xa1, 0x01, 0x0a, 0x0f, 0x43, 0x6f, 0x6d,
- 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x0f,
- 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x18,
- 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x49, 0x6e,
- 0x64, 0x65, 0x78, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x61,
- 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x05, 0x52, 0x0c, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73,
- 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x6c, 0x6c, 0x5f, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64,
- 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0f, 0x61, 0x6c, 0x6c,
- 0x41, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x22, 0x73, 0x0a, 0x04,
- 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53,
- 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x43,
- 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x44, 0x55, 0x4d, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x10,
- 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x44, 0x55, 0x4d, 0x50,
- 0x5f, 0x45, 0x4e, 0x44, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e,
- 0x44, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x45, 0x10, 0x03, 0x12, 0x14, 0x0a, 0x10, 0x43,
- 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x52, 0x45, 0x53, 0x50, 0x4f, 0x4e, 0x53, 0x45, 0x10,
- 0x04, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67,
- 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x13, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f,
+ 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x2c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,
+ 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x2e, 0x44, 0x61, 0x74,
+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x11,
+ 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x74, 0x61, 0x72,
+ 0x74, 0x12, 0x56, 0x0a, 0x11, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x79,
+ 0x6e, 0x63, 0x5f, 0x65, 0x6e, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61,
+ 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x53, 0x79, 0x6e, 0x63, 0x45, 0x6e, 0x64, 0x52, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,
+ 0x73, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x45, 0x6e, 0x64, 0x12, 0x63, 0x0a, 0x16, 0x74, 0x61, 0x73,
+ 0x6b, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x75, 0x70, 0x64,
+ 0x61, 0x74, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52,
+ 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x53, 0x74, 0x61,
+ 0x74, 0x75, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x13, 0x74, 0x61, 0x73, 0x6b, 0x52,
+ 0x75, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x1a, 0x11,
+ 0x0a, 0x0f, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x75, 0x6d, 0x70, 0x53, 0x74, 0x61, 0x72,
+ 0x74, 0x1a, 0x25, 0x0a, 0x0d, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x75, 0x6d, 0x70, 0x45,
+ 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x1a, 0x39, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x6d,
+ 0x61, 0x6e, 0x64, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f,
+ 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x18, 0x01, 0x20,
+ 0x03, 0x28, 0x05, 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x49, 0x6e, 0x64, 0x65,
+ 0x78, 0x65, 0x73, 0x1a, 0xa1, 0x01, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52,
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x6d, 0x61,
+ 0x6e, 0x64, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05,
+ 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73,
+ 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74,
+ 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x61,
+ 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x61,
+ 0x6c, 0x6c, 0x5f, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73,
+ 0x18, 0x04, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0f, 0x61, 0x6c, 0x6c, 0x41, 0x66, 0x66, 0x65, 0x63,
+ 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x1a, 0x13, 0x0a, 0x11, 0x44, 0x61, 0x74, 0x61, 0x62,
+ 0x61, 0x73, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x74, 0x61, 0x72, 0x74, 0x1a, 0x27, 0x0a, 0x0f,
+ 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x45, 0x6e, 0x64, 0x12,
+ 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
+ 0x65, 0x72, 0x72, 0x6f, 0x72, 0x1a, 0xb0, 0x01, 0x0a, 0x13, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75,
+ 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x4d, 0x0a,
+ 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54,
+ 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x4c, 0x6f, 0x67, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75,
+ 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x53, 0x74,
+ 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x4a, 0x0a, 0x06,
+ 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53,
+ 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13,
+ 0x0a, 0x0f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x57, 0x41, 0x49, 0x54, 0x49, 0x4e,
+ 0x47, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x52,
+ 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x22, 0xbf, 0x01, 0x0a, 0x04, 0x54, 0x79, 0x70,
+ 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,
+ 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x43, 0x48, 0x45, 0x4d,
+ 0x41, 0x5f, 0x44, 0x55, 0x4d, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x10, 0x01, 0x12, 0x13,
+ 0x0a, 0x0f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x44, 0x55, 0x4d, 0x50, 0x5f, 0x45, 0x4e,
+ 0x44, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x45,
+ 0x58, 0x45, 0x43, 0x55, 0x54, 0x45, 0x10, 0x03, 0x12, 0x14, 0x0a, 0x10, 0x43, 0x4f, 0x4d, 0x4d,
+ 0x41, 0x4e, 0x44, 0x5f, 0x52, 0x45, 0x53, 0x50, 0x4f, 0x4e, 0x53, 0x45, 0x10, 0x04, 0x12, 0x17,
+ 0x0a, 0x13, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x5f,
+ 0x53, 0x54, 0x41, 0x52, 0x54, 0x10, 0x05, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x41, 0x54, 0x41, 0x42,
+ 0x41, 0x53, 0x45, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x45, 0x4e, 0x44, 0x10, 0x06, 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, 0x07, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65,
+ 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65,
+ 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -433,27 +687,35 @@ func file_store_task_run_log_proto_rawDescGZIP() []byte {
return file_store_task_run_log_proto_rawDescData
}
-var file_store_task_run_log_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
-var file_store_task_run_log_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
+var file_store_task_run_log_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
+var file_store_task_run_log_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_store_task_run_log_proto_goTypes = []any{
- (TaskRunLog_Type)(0), // 0: bytebase.store.TaskRunLog.Type
- (*TaskRunLog)(nil), // 1: bytebase.store.TaskRunLog
- (*TaskRunLog_SchemaDumpStart)(nil), // 2: bytebase.store.TaskRunLog.SchemaDumpStart
- (*TaskRunLog_SchemaDumpEnd)(nil), // 3: bytebase.store.TaskRunLog.SchemaDumpEnd
- (*TaskRunLog_CommandExecute)(nil), // 4: bytebase.store.TaskRunLog.CommandExecute
- (*TaskRunLog_CommandResponse)(nil), // 5: bytebase.store.TaskRunLog.CommandResponse
+ (TaskRunLog_Type)(0), // 0: bytebase.store.TaskRunLog.Type
+ (TaskRunLog_TaskRunStatusUpdate_Status)(0), // 1: bytebase.store.TaskRunLog.TaskRunStatusUpdate.Status
+ (*TaskRunLog)(nil), // 2: bytebase.store.TaskRunLog
+ (*TaskRunLog_SchemaDumpStart)(nil), // 3: bytebase.store.TaskRunLog.SchemaDumpStart
+ (*TaskRunLog_SchemaDumpEnd)(nil), // 4: bytebase.store.TaskRunLog.SchemaDumpEnd
+ (*TaskRunLog_CommandExecute)(nil), // 5: bytebase.store.TaskRunLog.CommandExecute
+ (*TaskRunLog_CommandResponse)(nil), // 6: bytebase.store.TaskRunLog.CommandResponse
+ (*TaskRunLog_DatabaseSyncStart)(nil), // 7: bytebase.store.TaskRunLog.DatabaseSyncStart
+ (*TaskRunLog_DatabaseSyncEnd)(nil), // 8: bytebase.store.TaskRunLog.DatabaseSyncEnd
+ (*TaskRunLog_TaskRunStatusUpdate)(nil), // 9: bytebase.store.TaskRunLog.TaskRunStatusUpdate
}
var file_store_task_run_log_proto_depIdxs = []int32{
0, // 0: bytebase.store.TaskRunLog.type:type_name -> bytebase.store.TaskRunLog.Type
- 2, // 1: bytebase.store.TaskRunLog.schema_dump_start:type_name -> bytebase.store.TaskRunLog.SchemaDumpStart
- 3, // 2: bytebase.store.TaskRunLog.schema_dump_end:type_name -> bytebase.store.TaskRunLog.SchemaDumpEnd
- 4, // 3: bytebase.store.TaskRunLog.command_execute:type_name -> bytebase.store.TaskRunLog.CommandExecute
- 5, // 4: bytebase.store.TaskRunLog.command_response:type_name -> bytebase.store.TaskRunLog.CommandResponse
- 5, // [5:5] is the sub-list for method output_type
- 5, // [5:5] is the sub-list for method input_type
- 5, // [5:5] is the sub-list for extension type_name
- 5, // [5:5] is the sub-list for extension extendee
- 0, // [0:5] is the sub-list for field type_name
+ 3, // 1: bytebase.store.TaskRunLog.schema_dump_start:type_name -> bytebase.store.TaskRunLog.SchemaDumpStart
+ 4, // 2: bytebase.store.TaskRunLog.schema_dump_end:type_name -> bytebase.store.TaskRunLog.SchemaDumpEnd
+ 5, // 3: bytebase.store.TaskRunLog.command_execute:type_name -> bytebase.store.TaskRunLog.CommandExecute
+ 6, // 4: bytebase.store.TaskRunLog.command_response:type_name -> bytebase.store.TaskRunLog.CommandResponse
+ 7, // 5: bytebase.store.TaskRunLog.database_sync_start:type_name -> bytebase.store.TaskRunLog.DatabaseSyncStart
+ 8, // 6: bytebase.store.TaskRunLog.database_sync_end:type_name -> bytebase.store.TaskRunLog.DatabaseSyncEnd
+ 9, // 7: bytebase.store.TaskRunLog.task_run_status_update:type_name -> bytebase.store.TaskRunLog.TaskRunStatusUpdate
+ 1, // 8: bytebase.store.TaskRunLog.TaskRunStatusUpdate.status:type_name -> bytebase.store.TaskRunLog.TaskRunStatusUpdate.Status
+ 9, // [9:9] is the sub-list for method output_type
+ 9, // [9:9] is the sub-list for method input_type
+ 9, // [9:9] is the sub-list for extension type_name
+ 9, // [9:9] is the sub-list for extension extendee
+ 0, // [0:9] is the sub-list for field type_name
}
func init() { file_store_task_run_log_proto_init() }
@@ -522,14 +784,50 @@ func file_store_task_run_log_proto_init() {
return nil
}
}
+ file_store_task_run_log_proto_msgTypes[5].Exporter = func(v any, i int) any {
+ switch v := v.(*TaskRunLog_DatabaseSyncStart); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_task_run_log_proto_msgTypes[6].Exporter = func(v any, i int) any {
+ switch v := v.(*TaskRunLog_DatabaseSyncEnd); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_task_run_log_proto_msgTypes[7].Exporter = func(v any, i int) any {
+ switch v := v.(*TaskRunLog_TaskRunStatusUpdate); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_store_task_run_log_proto_rawDesc,
- NumEnums: 1,
- NumMessages: 5,
+ NumEnums: 2,
+ NumMessages: 8,
NumExtensions: 0,
NumServices: 0,
},
diff --git a/proto/store/task_run_log.proto b/proto/store/task_run_log.proto
index e508f33054..6dc4f28178 100644
--- a/proto/store/task_run_log.proto
+++ b/proto/store/task_run_log.proto
@@ -11,12 +11,18 @@ message TaskRunLog {
SCHEMA_DUMP_END = 2;
COMMAND_EXECUTE = 3;
COMMAND_RESPONSE = 4;
+ DATABASE_SYNC_START = 5;
+ DATABASE_SYNC_END = 6;
+ TASK_RUN_STATUS_UPDATE = 7;
}
Type type = 1;
SchemaDumpStart schema_dump_start = 2;
SchemaDumpEnd schema_dump_end = 3;
CommandExecute command_execute = 4;
CommandResponse command_response = 5;
+ DatabaseSyncStart database_sync_start = 6;
+ DatabaseSyncEnd database_sync_end = 7;
+ TaskRunStatusUpdate task_run_status_update = 8;
message SchemaDumpStart {}
message SchemaDumpEnd {
@@ -35,4 +41,18 @@ message TaskRunLog {
// `all_affected_rows` may be unavailable if the database driver doesn't support it. Caller should fallback to `affected_rows` in that case.
repeated int32 all_affected_rows = 4;
}
+ message DatabaseSyncStart {}
+ message DatabaseSyncEnd {
+ string error = 1;
+ }
+ message TaskRunStatusUpdate {
+ Status status = 1;
+ enum Status {
+ STATUS_UNSPECIFIED = 0;
+ // the task run is ready to be executed by the scheduler
+ RUNNING_WAITING = 1;
+ // the task run is being executed by the scheduler
+ RUNNING_RUNNING = 2;
+ }
+ }
}