refactor: remove unnecessary type: async_workflow_service.py (#32081)

This commit is contained in:
kongwenyan 2026-02-08 02:26:30 +08:00 committed by GitHub
parent c185a51bad
commit 4bd80683a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -155,11 +155,11 @@ class AsyncWorkflowService:
task: AsyncResult[Any] | None = None
if queue_name == QueuePriority.PROFESSIONAL:
task = execute_workflow_professional.delay(task_data_dict) # type: ignore
task = execute_workflow_professional.delay(task_data_dict)
elif queue_name == QueuePriority.TEAM:
task = execute_workflow_team.delay(task_data_dict) # type: ignore
task = execute_workflow_team.delay(task_data_dict)
else: # SANDBOX
task = execute_workflow_sandbox.delay(task_data_dict) # type: ignore
task = execute_workflow_sandbox.delay(task_data_dict)
# 10. Update trigger log with task info
trigger_log.status = WorkflowTriggerStatus.QUEUED
@ -170,7 +170,7 @@ class AsyncWorkflowService:
return AsyncTriggerResponse(
workflow_trigger_log_id=trigger_log.id,
task_id=task.id, # type: ignore
task_id=task.id,
status="queued",
queue=queue_name,
)