Model/utilities/aws_lambda/subtask_trigger_body.py
2026-05-19 16:35:09 +00:00

17 lines
483 B
Python

from uuid import UUID
from pydantic import BaseModel, ConfigDict
class SubtaskTriggerBody(BaseModel):
"""The minimum the subtask_handler needs to dispatch lifecycle calls.
`extra="allow"` so the rest of the work payload passes through to the
decorated function untouched — handlers do their own model_validate on
the full body for fields specific to their use case.
"""
model_config = ConfigDict(extra="allow")
task_id: UUID
sub_task_id: UUID