Преглед на файлове

调度超时和Handler匹配不到时,调度状态优化

xueli.xue преди 9 години
родител
ревизия
8fde5bed3d
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      xxl-job-core/src/main/java/com/xxl/job/core/router/HandlerRouter.java

+ 2 - 2
xxl-job-core/src/main/java/com/xxl/job/core/router/HandlerRouter.java

@@ -85,13 +85,13 @@ public class HandlerRouter {
 
 		// timestamp check
 		if (System.currentTimeMillis() - requestModel.getTimestamp() > 60000) {
-			return new ResponseModel(ResponseModel.SUCCESS, "Timestamp Timeout.");
+			return new ResponseModel(ResponseModel.FAIL, "Timestamp Timeout.");
 		}
 
 		// match action
 		IAction action = ActionRepository.matchAction(requestModel.getAction());
 		if (action == null) {
-			return new ResponseModel(ResponseModel.SUCCESS, "Action match fail.");
+			return new ResponseModel(ResponseModel.FAIL, "Action match fail.");
 		}
 
 		return action.execute(requestModel);