sendDurableExecutionCallbackHeartbeat method
Sends a heartbeat signal for a long-running callback operation to prevent timeout. Use this API to extend the callback timeout period while the external operation is still in progress.
May throw CallbackTimeoutException.
May throw InvalidParameterValueException.
May throw ServiceException.
May throw TooManyRequestsException.
Parameter callbackId :
The unique identifier for the callback operation.
Implementation
Future<void> sendDurableExecutionCallbackHeartbeat({
required String callbackId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'POST',
requestUri:
'/2025-12-01/durable-execution-callbacks/${Uri.encodeComponent(callbackId)}/heartbeat',
exceptionFnMap: _exceptionFns,
);
}