python版本 3.8.3
中文日志正常查看
在调度中心里查看日志是乱码的。 去执行器机器查看对应的日志是正常的
GLUE(Python) 任务
手动执行1次。
python代码 `#!/usr/bin/python
-- coding: UTF-8 --import time import sys
print ("xxl-job: hello python")
print ("脚本位置:"+sys.argv[0]) print ("任务参数:"+ sys.argv[1]) print ("分片序号:"+ sys.argv[2]) if len(sys.argv) > 3: print ("分片总数:"+ sys.argv[3])
print ("Good bye!") exit(0) `
Other information2023-06-05 14:42:31 [com.xxl.job.core.thread.JobThread#run]-[133]-[xxl-job, JobThread-3-1685947293094] ----------- xxl-job job execute start ----------- ----------- Param: 2023-06-05 14:42:31 [com.xxl.job.core.handler.impl.ScriptJobHandler#execute]-[80]-[xxl-job, JobThread-3-1685947293094] ----------- script file:data\applogs\xxl-job\jobhandler\gluesource\3_1685946747000.py ----------- xxl-job: hello python �ű�λ�ã�data\applogs\xxl-job\jobhandler\gluesource\3_1685946747000.py ���������0 ��Ƭ��ţ�1 Good bye! 2023-06-05 14:42:31 [com.xxl.job.core.thread.JobThread#run]-[179]-[xxl-job, JobThread-3-1685947293094] ----------- xxl-job job execute end(finish) ----------- ----------- Result: handleCode=200, handleMsg = null 2023-06-05 14:42:31 [com.xxl.job.core.thread.TriggerCallbackThread#callbackLog]-[197]-[xxl-job, executor TriggerCallbackThread] ----------- xxl-job job callback finish.