Skip to content

Commit ef9e313

Browse files
committed
kafka log
1 parent 06bf336 commit ef9e313

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/net/preibisch/fusiontask/task/MainJob.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,19 @@ public MainJob() {
5050

5151
@Override
5252
public Void call() throws Exception {
53-
try {id = id -1;
54-
53+
try {
54+
55+
try{id = id -1;
56+
}catch(Exception e) {
57+
KafkaManager.error(-1,e.toString());
58+
System.out.println("Error id");
59+
throw new Exception("Specify id!");
60+
}
5561
TaskType type = TaskType.of(task);
5662
switch (type) {
5763
case PREPARE:
5864
generateN5(input, metadataPath, output, id);
59-
return null;
65+
return null;
6066
case PROCESS:
6167
blockTask(input, metadataPath, output, id);
6268
return null;

0 commit comments

Comments
 (0)