Skip to content

Commit

Permalink
Feature: trun off mse-task notification & modify is_nullable default …
Browse files Browse the repository at this point in the history
…value (#378)
  • Loading branch information
seaway-z authored Jan 15, 2021
1 parent a2f096a commit 904065e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import com.miotech.kun.workflow.core.event.Event;
import com.miotech.kun.workflow.core.event.TaskAttemptStatusChangeEvent;
import com.miotech.kun.workflow.operator.spark.clients.HttpApiClient;
import org.json.simple.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
Expand Down Expand Up @@ -54,7 +53,7 @@ public void sendMessage(String content, List<String> users) {
@Override
public void notify(Event event) {
TaskAttemptStatusChangeEvent taskAttemptStatusChangeEvent = (TaskAttemptStatusChangeEvent) event;
if(taskAttemptStatusChangeEvent.getToStatus().isFailure() ){
if(taskAttemptStatusChangeEvent.getToStatus().isFailure() && !"mse-task".equals(taskAttemptStatusChangeEvent.getTaskName())){
String msg = buildMessage(taskAttemptStatusChangeEvent);
List<String> users = deployedTaskService.getUserByTaskId(taskAttemptStatusChangeEvent.getTaskId());
sendMessage(msg, users);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ALTER TABLE kun_mt_dataset_field ADD COLUMN "is_primary_key" BOOLEAN DEFAULT FALSE;
ALTER TABLE kun_mt_dataset_field ADD COLUMN "is_nullable" BOOLEAN DEFAULT FALSE;
ALTER TABLE kun_mt_dataset_field ADD COLUMN "is_nullable" BOOLEAN DEFAULT TRUE;

0 comments on commit 904065e

Please sign in to comment.