diff options
| author | chrislu <chris.lu@gmail.com> | 2023-09-25 20:09:03 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2023-09-25 20:09:03 -0700 |
| commit | e16324da9493e52de31c905435b3b8b184bebeca (patch) | |
| tree | 8bad880225e9f1638ba5f6e81d700d713c6d0d69 | |
| parent | 5e22524351f851376b717a64f01d24066c6ecd29 (diff) | |
| download | seaweedfs-origin/create-table-snapshot-api-design.tar.xz seaweedfs-origin/create-table-snapshot-api-design.zip | |
update job statusorigin/create-table-snapshot-api-design
| -rw-r--r-- | weed/pb/mq.proto | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/weed/pb/mq.proto b/weed/pb/mq.proto index 0c933888b..874ef04b3 100644 --- a/weed/pb/mq.proto +++ b/weed/pb/mq.proto @@ -60,18 +60,18 @@ message CreateTableSnapshotRequest { string aws_secret_access_key = 5; } -enum TableSnapshotStatus { - TABLE_SNAPSHOT_STATUS_UNKNOWN = 0; - TABLE_SNAPSHOT_STATUS_CREATED = 1; - TABLE_SNAPSHOT_STATUS_FAILED = 2; // the error will be reported in the error string - TABLE_SNAPSHOT_STATUS_TRY_LATER = 3; // when the cluster has other snapshots in progress - TABLE_SNAPSHOT_STATUS_RUNNING = 4; - TABLE_SNAPSHOT_STATUS_DONE = 5; +enum JobStatus { + JOB_STATUS_UNKNOWN = 0; + JOB_STATUS_CREATED = 1; + JOB_STATUS_FAILED = 2; // the error will be reported in the error string + JOB_STATUS_TRY_LATER = 3; // when the cluster has other snapshots in progress + JOB_STATUS_RUNNING = 4; + JOB_STATUS_DONE = 5; } message CreateTableSnapshotResponse { string job_id = 1; - TableSnapshotStatus status = 2; + JobStatus status = 2; string error = 3; } @@ -79,7 +79,7 @@ message CheckJobStatusRequest { string job_id = 1; } message CheckJobStatusResponse { - TableSnapshotStatus status = 1; + JobStatus status = 1; string error = 2; } |
