You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by ke...@apache.org on 2023/04/13 09:04:02 UTC
[dolphinscheduler] branch 3.1.6-prepare updated: Fix schedule time data primary key conflict when importing workflow definition (#13926)
This is an automated email from the ASF dual-hosted git repository.
kerwin pushed a commit to branch 3.1.6-prepare
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/3.1.6-prepare by this push:
new 9d303a017b Fix schedule time data primary key conflict when importing workflow definition (#13926)
9d303a017b is described below
commit 9d303a017b4b875eda70eff85723febe506a6546
Author: Kerwin <37...@users.noreply.github.com>
AuthorDate: Thu Apr 13 17:01:10 2023 +0800
Fix schedule time data primary key conflict when importing workflow definition (#13926)
---
.../dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java
index 30916f15a5..d963295372 100644
--- a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java
+++ b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java
@@ -1429,6 +1429,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
if (null != schedule) {
ProcessDefinition newProcessDefinition = processDefinitionMapper.queryByCode(processDefinition.getCode());
schedule.setProcessDefinitionCode(newProcessDefinition.getCode());
+ schedule.setId(null);
schedule.setUserId(loginUser.getId());
schedule.setCreateTime(now);
schedule.setUpdateTime(now);