lordk911 commented on issue #8790:
URL:
https://github.com/apache/dolphinscheduler/issues/8790#issuecomment-1098620438
dolphinscheduler 引入工作流版本控制后,出现工作流无法保存的问题修复:
异常信息:
Duplicate key TaskDefinition{id=0, code=3755309816211, name='zjcz_stage2',
version=3, description='', projectCode=0, userId=0, taskType=DEPENDENT,
taskParams='{"dependence":{"relation":"AND","dependTaskList":[{"relation":"AND","dependItemList":[{"projectCode":3755309710848,"definitionCode":3755309717380,"depTaskCode":0,"cycle":"day","dateValue":"today"}]}]},"conditionResult":{"successNode":[],"failedNode":[]},"waitStartTimeout":{"strategy":"FAILED","interval":null,"checkInterval":null,"enable":false},"switchResult":{}}',
taskParamList=null, taskParamMap=null, flag=YES, taskPriority=MEDIUM,
userName='null', projectName='null', workerGroup='default', failRetryTimes=0,
environmentCode='-1', failRetryInterval=1, timeoutFlag=CLOSE,
timeoutNotifyStrategy=WARN, timeout=0, delayTime=0, resourceIds='null',
createTime=null, updateTime=null}
当时页面的URL:
http://a.b.c.d:12345/dolphinscheduler/ui/#/projects/3755309710848/definition/list/3755309717382
以上信息说明:
在保存项目3755309710848,工作流 3755309717382 时发生了主键冲突异常,注意该主键异常并非数据库主键,具体发生重复的任务是
3755309816211,版本号是3.
解决这个问题,到表t_ds_process_task_relation中查看一下当前工作流(3755309717382)的版本
以及所关联的任务(3755309816211)的版本,应该不是3,
然后到表 t_ds_process_task_relation_log 中查询一下 当前工作流(3755309717382),当前版本
,所关联的任务(3755309816211)的信息,把版本不是3的删掉即可。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]