diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/job/ApiScenarioScheduleJob.java b/backend/services/api-test/src/main/java/io/metersphere/api/job/ApiScenarioScheduleJob.java index 62f7997417..ea6ad062f5 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/job/ApiScenarioScheduleJob.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/job/ApiScenarioScheduleJob.java @@ -69,6 +69,7 @@ public class ApiScenarioScheduleJob extends BaseScheduleJob { taskInfo.setUserId(userId); taskInfo.getRunModeConfig().setEnvironmentId(apiRunModeConfigDTO.getEnvironmentId()); taskInfo.getRunModeConfig().setGrouped(apiRunModeConfigDTO.getGrouped()); + taskInfo.setTriggerMode(TaskTriggerMode.SCHEDULE.name()); taskItem.setId(execTaskItem.getId()); apiExecuteService.execute(taskRequest);