Transactions

Queue recovery

Recover stuck queued transactions with the Python SDK.

POST/transactions/recover

Use blnk.transactions.recover_queue to retry queued transactions.

Call the method

response = blnk.transactions.recover_queue({
  "threshold": "5m",
})
FieldTypeDescription
thresholdstrMinimum age of transactions to recover (for example 5m, 1h). Default 2m. Minimum 2 minutes.

Check how many were recovered

Read response.data["recovered"] to see how many transactions were re-enqueued. Use Search or get by ID to verify individual transaction statuses afterward.

Response

{
  "recovered": 3,
  "threshold": "5m0s"
}
FieldTypeDescription
recoverednumberNumber of transactions re-enqueued for processing.
thresholdstrThreshold duration that was used.