Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modify dataset status #37

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@
@Getter
public enum DatasetStatus {
Success(0, "Success"),
Failure(-1, "Failure"),
Fatal(-2, "Fatal"),
InitialState(1, "InitialState"),
WaitingForUploadData(2, "WaitingForUploadData"),
WaitingForLoadDBData(3, "WaitingForLoadDBData"),
DataUploading(4, "DataUploading"),
DataAnalyzing(5, "DataAnalyzing"),
UploadingDataToStorage(6, "UploadingDataToStorage");
Failure(-1, "Failure"), // dataset is in failure and can be processed by retrying
Fatal(-2, "Fatal"), // dataset is in failure and can not be processed by retrying
Created(1, "Created"), // dataset is created and waiting for data source processing
DataAnalyzing(2, "DataAnalyzing"), // data analyzing
DataUploading(3, "UploadingDataToStorage"), // upload data to storage
UpdateDatasetMetaState(
4,
"UpdateDatasetMetaState"), // update dataset meta info, ie: dataset,column num,data hash
UploadingChunkData(5, "UploadingChunkData"), // chunk data is being uploaded
LoadingDBData(6, "LoadingDBData"), // upload database data
LoadingExcelData(7, "LoadingExcelData"), // loading excel data
MergingChunkData(8, "MergingChunkData"); // merge chunk data

private final Integer code;
private final String message;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ public Dataset constructDataset(
dataset.setStatus(DatasetStatus.Success.getCode());
dataset.setStatusDesc(DatasetStatus.Success.getMessage());
} else {
dataset.setStatus(DatasetStatus.InitialState.getCode());
dataset.setStatusDesc(DatasetStatus.InitialState.getMessage());
dataset.setStatus(DatasetStatus.Created.getCode());
dataset.setStatusDesc(DatasetStatus.Created.getMessage());
}

return dataset;
Expand Down
Loading