Skip to content

Commit 18ef0a6

Browse files
authored
Set the id to null when copying t_ds_schedules (#12280)
Co-authored-by: fanwanlong <fanwanlong@kezaihui.com>
1 parent 98a8b53 commit 18ef0a6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2205,6 +2205,7 @@ protected void doBatchOperateProcessDefinition(User loginUser,
22052205
// copy timing configuration
22062206
Schedule scheduleObj = scheduleMapper.queryByProcessDefinitionCode(oldProcessDefinitionCode);
22072207
if (scheduleObj != null) {
2208+
scheduleObj.setId(null);
22082209
scheduleObj.setProcessDefinitionCode(processDefinition.getCode());
22092210
scheduleObj.setReleaseState(ReleaseState.OFFLINE);
22102211
scheduleObj.setCreateTime(date);

0 commit comments

Comments
 (0)