mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-25 23:49:28 +00:00
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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user