powerjob 提交时json解析失败

Blade 已结 1 82

一、该问题的重现步骤是什么?

1. image.png

2. 

3.


二、你期待的结果是什么?实际看到的又是什么?


三、你正在使用的是什么产品,什么版本?在什么操作系统上?


四、请提供详细的错误堆栈信息,这很重要。


五、若有更多详细信息,请在下面提供。

1条回答
  •  admin
    admin (最佳回答者)
    1天前

    请问powerjob用的版本是 4.3.6 么?如果是高版本应该不行,高版本的客户端结构不一样,还没有做适配

    作者追问:1天前

    image.png
    用的就是这个版本的

    作者追问:1天前

    image.pngimage.png

    回答: 1天前

    f12看下network,把提交时的json复制贴出来看下

    作者追问:1天前

    {"$timeExpressionType":"CRON","$executeType":"单机执行","$processorType":"内建处理器","$enable":"启用","$dispatchStrategy":"HEALTH_FIRST","$logType":-1,"$logLevel":-1,"enable":1,"jobServerId":"1876135341852909570","jobId":2,"jobName":"重新生成红绿灯Redis","timeExpressionType":2,"executeType":1,"processorType":1,"lifecycle":[],"timeExpression":"0 0 2 * * ? *","dispatchStrategy":1,"processorInfo":"tech.powerjob.official.processors.impl.HttpProcessor","jobParams":"{\"method\":\"GET\",\"url\":\"http://172.30.30.130:30201/mg-transport/quotaJob/resavelight\"}","jobDescription":"","maxInstanceNum":0,"concurrency":5,"instanceTimeLimit":0,"instanceRetryNum":0,"taskRetryNum":0,"minCpuCores":0,"minMemorySpace":0,"minDiskSpace":0,"designatedWorkers":"","maxWorkerCount":0,"notifyUserIds":"","alertThreshold":0,"statisticWindowLen":0,"silenceWindowLen":0,"logType":-1,"logLevel":-1,"extra":"","id":"1876175772054102018","createUser":"1123598821738675201","createDept":"1123598813738675201","createTime":"2025-01-06 15:55:36","updateUser":"1123598821738675201","updateTime":"2025-01-06 15:55:36","status":1,"isDeleted":0,"$index":0,"$jobServerId":"blade-job: (powerjob - 172.30.30.134:30070)"}image.png

    回答: 1天前

    好想是日期范围为空的问题,按照这个修改试试,看这样修改后是否支持空时间段提交

    https://center.javablade.com/blade/Saber3/commit/eba7b8cd21388cd2ac50127c03613f63845190fd


    0 讨论(1)
提交回复