This is an automated email from the ASF dual-hosted git repository.
wenjun pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new 352b47bd85 [Chore] python gateway unable to execute workflow (#16969)
352b47bd85 is described below
commit 352b47bd8576a47f83285ecfffec589de462fac0
Author: Jay Chung <[email protected]>
AuthorDate: Wed Jan 22 19:17:22 2025 +0800
[Chore] python gateway unable to execute workflow (#16969)
---
.../org/apache/dolphinscheduler/api/python/PythonGateway.java | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/python/PythonGateway.java
b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/python/PythonGateway.java
index 0166e34381..0149e48a88 100644
---
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/python/PythonGateway.java
+++
b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/python/PythonGateway.java
@@ -33,9 +33,11 @@ import org.apache.dolphinscheduler.api.service.TenantService;
import org.apache.dolphinscheduler.api.service.UsersService;
import org.apache.dolphinscheduler.api.service.WorkflowDefinitionService;
import org.apache.dolphinscheduler.common.constants.Constants;
+import org.apache.dolphinscheduler.common.enums.CommandType;
import org.apache.dolphinscheduler.common.enums.ComplementDependentMode;
import org.apache.dolphinscheduler.common.enums.ExecutionOrder;
import org.apache.dolphinscheduler.common.enums.FailureStrategy;
+import org.apache.dolphinscheduler.common.enums.Flag;
import org.apache.dolphinscheduler.common.enums.Priority;
import org.apache.dolphinscheduler.common.enums.ReleaseState;
import org.apache.dolphinscheduler.common.enums.RunMode;
@@ -370,11 +372,9 @@ public class PythonGateway {
public void execWorkflowInstance(String userName,
String projectName,
String workflowName,
- String cronTime,
String workerGroup,
String warningType,
- Integer warningGroupId,
- Integer timeout) {
+ Integer warningGroupId) {
User user = usersService.queryUser(userName);
Project project = projectMapper.queryByName(projectName);
WorkflowDefinition workflowDefinition =
@@ -389,6 +389,10 @@ public class PythonGateway {
.workerGroup(workerGroup)
.warningType(WarningType.of(warningType))
.warningGroupId(warningGroupId)
+ .execType(CommandType.START_PROCESS)
+ .taskDependType(TaskDependType.TASK_POST)
+ .dryRun(Flag.NO)
+ .testFlag(Flag.NO)
.build();
executorService.triggerWorkflowDefinition(workflowTriggerRequest);
}