Mark Failed • AI Agent SDK
mark_failed: Mark a message as failed.
mark_failed
Async
Method
</div>
This is a method of the OutboundDeliveryProtocol class in the protocols module.
Mark a message as failed.
Signature
async def mark_failed(key: str, error: str, permanent: bool) -> boolParameters
ParamField
strThe entry key returned by enqueue()
ParamField
strError description
ParamField
boolIf True, won’t retry this message
Returns
ResponseField
boolTrue if marked successfully, False if not found
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 2069