一、该问题的重现步骤是什么?
1. 我只设置了一个任务, Cron为0 0 9,10,18,19,23 * * ? 但是后台一直非常繁忙, 我设置了DEBUG模式输出sql,发现一直在跑一些sql,导致日志文件都有十几g, 能不能只在设置的时间点运行?
2.
er_code, t.trigger_msg, t.handle_time, t.handle_code, t.handle_msg, t.alarm_status FROM xxl_job_log AS t WHERE t.id = ? 2020-07-03 00:10:57.796 DEBUG 36056 --- [XNIO-1 task-358] com.xxl.job.admin.dao.XxlJobLogDao.load : ==> Parameters: 112834(Long) 2020-07-03 00:10:57.799 DEBUG 36056 --- [XNIO-1 task-355] com.xxl.job.admin.dao.XxlJobLogDao.load : <== Total: 1 2020-07-03 00:10:57.800 DEBUG 36056 --- [XNIO-1 task-355] c.x.job.admin.service.impl.AdminBizImpl : >>>>>>>>> JobApiController.callback fail, handleCallbackParam=HandleCallbackParam{logId=114180, logDateTim=1592916268027, executeResult=ReturnT [code=200, msg=null, content=null]}, callbackResult=ReturnT [code=500, msg=log repeate callback., content=null] 2020-07-03 00:10:57.800 DEBUG 36056 --- [XNIO-1 task-355] com.xxl.job.admin.dao.XxlJobLogDao.load : ==> Preparing: SELECT t.id, t.job_group, t.job_id, t.executor_address, t.executor_handler, t.executor_param, t.executor_sharding_param, t.executor_fail_retry_count, t.trigger_time, t.trigger_code, t.trigger_msg, t.handle_time, t.handle_code, t.handle_msg, t.alarm_status FROM xxl_job_log AS t WHERE t.id = ? 2020-07-03 00:10:57.801 DEBUG 36056 --- [XNIO-1 task-355] com.xxl.job.admin.dao.XxlJobLogDao.load : ==> Parameters: 114181(Long) 2020-07-03 00:10:57.808 DEBUG 36056 --- [XNIO-1 task-358] com.xxl.job.admin.dao.XxlJobLogDao.load : <== Total: 1 2020-07-03 00:10:57.808 DEBUG 36056 --- [XNIO-1 task-358] c.x.job.admin.service.impl.AdminBizImpl : >>>>>>>>> JobApiController.callback fail, handleCallbackParam=HandleCallbackParam{logId=112834, logDateTim=1592914922028, executeResult=ReturnT [code=200, msg=null, content=null]}, callbackResult=ReturnT [code=500, msg=log repeate callback., content=null] 2020-07-03 00:10:57.809 DEBUG 36056 --- [XNIO-1 task-358] com.xxl.job.admin.dao.XxlJobLogDao.load : ==> Preparing: SELECT t.id, t.job_group, t.job_id, t.executor_address, t.executor_handler, t.executor_param, t.executor_sharding_param, t.executor_fail_retry_count, t.trigger_time, t.trigger_code, t.trigger_msg, t.handle_time, t.handle_code, t.handle_msg, t.alarm_status FROM xxl_job_log AS t WHERE t.id = ? 2020-07-03 00:10:57.809 DEBUG 36056 --- [XNIO-1 task-358] com.xxl.job.admin.dao.XxlJobLogDao.load : ==> Parameters: 112835(Long) 2020-07-03 00:10:57.812 DEBUG 36056 --- [XNIO-1 task-355] com.xxl.job.admin.dao.XxlJobLogDao.load : <== Total: 1 2020-07-03 00:10:57.813 DEBUG 36056 --- [XNIO-1 task-355] c.x.job.admin.service.impl.AdminBizImpl : >>>>>>>>> JobApiController.callback fail, handleCallbackParam=HandleCallbackParam{logId=114181, logDateTim=1592916269029, executeResult=ReturnT [code=200, msg=null, content=null]}, callbackResult=ReturnT [code=500, msg=log repeate callback., content=null] 2020-07-03 00:10:57.813 DEBUG 36056 --- [XNIO-1 task-355] com.xxl.job.admin.dao.XxlJobLogDao.load : ==> Preparing: SELECT t.id, t.job_group, t.job_id, t.executor_address, t.executor_handler, t.executor_param, t.executor_sharding_param, t.executor_fail_retry_count, t.trigger_time, t.trigger_code, t.trigger_msg, t.handle_time, t.handle_code, t.handle_msg, t.alarm_status FROM xxl_job_log AS t WHERE t.id = ? 2020-07-03 00:10:57.813 DEBUG 36056 --- [XNIO-1 task-355] com.xxl.job.admin.dao.XxlJobLogDao.load : ==> Parameters: 114182(Long) 2020-07-03 00:10:57.822 DEBUG 36056 --- [XNIO-1 task-358] com.xxl.job.admin.dao.XxlJobLogDao.load : <== Total: 1 2020-07-03 00:10:57.822 DEBUG 36056 --- [XNIO-1 task-358] c.x.job.admin.service.impl.AdminBizImpl : >>>>>>>>> JobApiController.callback fail, handleCallbackParam=HandleCallbackParam{logId=112835, logDateTim=1592914923025, executeResult=ReturnT [code=200, msg=null, content=null]}, callbackResult=ReturnT [code=500, msg=log repeate callback., content=null] 2020-07-03 00:10:57.823 DEBUG 36056 --- [XNIO-1 task-358] com.xxl.job.admin.dao.XxlJobLogDao.load : ==> Preparing: SELECT t.id, t.job_group, t.job_id, t.executor_address, t.executor_handler, t.executor_param, t.executor_sharding_param, t.executor_fail_retry_count, t.trigger_time, t.trigger_code, t.trigger_msg, t.handle_time, t.handle_code, t.handle_msg, t.alarm_status FROM xxl_job_log AS t WHERE t.id = ? 2020-07-03 00:10:57.823 DEBUG 36056 --- [XNIO-1 task-358] com.xxl.job.admin.dao.XxlJobLogDao.load : ==> Parameters: 112836(Long)
我的任务执行时间可能一次得花几分钟,比较长,是不是返回失败了和这个有关系?
3.
二、你期待的结果是什么?实际看到的又是什么?
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
四、请提供详细的错误堆栈信息,这很重要。
五、若有更多详细信息,请在下面提供。
商业版答疑规则见:https://sns.bladex.cn/article-14990.html
请使用下单购买授权的qq邮箱注册后发帖
已修复好了邮箱了 谢谢
扫一扫访问 Blade技术社区 移动端