|
|
@@ -0,0 +1,23 @@
|
|
|
+package cn.com.ctop.job.bytedance.handler;
|
|
|
+
|
|
|
+import cn.com.ctop.job.bytedance.data.service.IHealthCheckService;
|
|
|
+import com.xxl.job.core.handler.annotation.XxlJob;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+@Slf4j
|
|
|
+@Component
|
|
|
+public class DeepthinkHealthCheckJob {
|
|
|
+ @Autowired
|
|
|
+ IHealthCheckService healthCheckService;
|
|
|
+
|
|
|
+ @XxlJob("deepthinkHealthCheckJob")
|
|
|
+ public void deepthinkHealthCheckJob(){
|
|
|
+ try {
|
|
|
+ healthCheckService.check();
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("DeepthinkHealthCheckJob error: ", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|