Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jwomeara committed Apr 30, 2024
1 parent 42fbb1c commit 7e36c36
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ protected void exportSystemProperties(String id, Job job, FileSystem fs, Path cl

// Note: The logic used to submit a mapreduce query is not needed when running in the mapper
systemProperties.put(MapReduceQueryProperties.PREFIX + ".enabled", "false");

writeProperties(id, job, fs, classpath, systemProperties);
}

Expand Down
20 changes: 14 additions & 6 deletions src/main/java/datawave/microservice/query/storage/QueryStatus.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,26 @@

public class QueryStatus implements Serializable {
/**
* These are the possible query states correlating with the activity that the user is requesting. DEFINE: define a query CREATE: create a query and get
* results PLAN: plan a query PREDICT: predict a query CLOSE: close the activity (finish executing tasks in progress) CANCEL: cancel the activity FAIL: the
* activity failed
* These are the possible query states correlating with the activity that the user is requesting.<br>
* DEFINE: define a query<br>
* CREATE: create a query and get results<br>
* PLAN: plan a query<br>
* PREDICT: predict a query<br>
* CLOSE: close the activity (finish executing tasks in progress)<br>
* CANCEL: cancel the activity<br>
* FAIL: the activity failed
*/
public enum QUERY_STATE {
DEFINE, CREATE, PLAN, PREDICT, CLOSE, CANCEL, FAIL
}

/**
* These are the possible stages of a query create/next/close CREATE: Create the query. PLAN: The query is being planned TASK: planning is complete and next
* tasks are being generated RESULTS: All next tasks have been generated and we are only generating results DONE: The query id done (QUERY_STATE should be
* set to CLOSE, CANCEL, or FAIL).
* These are the possible stages of a query create/next/close<br>
* CREATE: Create the query.<br>
* PLAN: The query is being planned<br>
* TASK: planning is complete and next tasks are being generated<br>
* RESULTS: All next tasks have been generated and we are only generating results<br>
* DONE: The query id done (QUERY_STATE should be set to CLOSE, CANCEL, or FAIL).
*/
public enum CREATE_STAGE {
CREATE, PLAN, TASK, RESULTS
Expand Down

0 comments on commit 7e36c36

Please sign in to comment.