fix(workflow): remove redundant submit call from executeWait

Remove the duplicate 'this.submit(task)' call in 'executeWait' as task submission is already handled automatically upon task creation by the Prisma Client Extension in 'src/db.ts'.
This commit is contained in:
yiling
2026-05-29 20:00:47 +08:00
parent dc29f7e273
commit ae445fa58a
2 changed files with 48 additions and 2 deletions
-2
View File
@@ -21,8 +21,6 @@ export class WorkflowService {
}
async executeWait(task: WorkflowTask, timeoutMs: number = 30000): Promise<WorkflowTask> {
await this.submit(task)
const start = Date.now()
while (Date.now() - start < timeoutMs) {
const updatedTask = await prisma.workflowTask.findUnique({