class documentation
class AsyncActivityHandle: (source)
Constructor: AsyncActivityHandle(client, id_or_token)
Handle representing an external activity for completion and heartbeat.
Method | __init__ |
Create an async activity handle. |
Async Method | complete |
Complete the activity. |
Async Method | fail |
Fail the activity. |
Async Method | heartbeat |
Record a heartbeat for the activity. |
Async Method | report |
Report the activity as cancelled. |
Instance Variable | _client |
Undocumented |
Instance Variable | _id |
Undocumented |
async def fail(self, error:
Exception
, *, last_heartbeat_details: Sequence[ Any]
= [], rpc_metadata: Mapping[ str, str]
= {}, rpc_timeout: Optional[ timedelta]
= None):
(source)
¶
Fail the activity.
Parameters | |
error:Exception | Error for the activity. |
lastSequence[ | Last heartbeat details for the activity. |
rpcMapping[ | Headers used on the RPC call. Keys here override client-level RPC metadata keys. |
rpcOptional[ | Optional RPC deadline to set for the RPC call. |