| 1 |
.. -*- rst -*- |
| 2 |
|
| 3 |
Request ID |
| 4 |
========== |
| 5 |
|
| 6 |
Summary |
| 7 |
------- |
| 8 |
|
| 9 |
.. versionadded:: 4.0.9 |
| 10 |
|
| 11 |
You can assign ID to each request. |
| 12 |
|
| 13 |
The ID can be used by canceling the request. See also |
| 14 |
:doc:`/reference/commands/request_cancel` for details about canceling |
| 15 |
a request. |
| 16 |
|
| 17 |
Request ID should be managed by user. If you assign the same ID for |
| 18 |
some running requests, you can't cancel the request. |
| 19 |
|
| 20 |
The simplest ID sequence is incremented numbers such as ``1``, |
| 21 |
``2`` , ``...``. |
| 22 |
|
| 23 |
A request ID is a string. The maximum request ID size is 4096 byte. |
| 24 |
|
| 25 |
How to assign ID to request |
| 26 |
--------------------------- |
| 27 |
|
| 28 |
All commands accept ``request_id`` parameter. You can assign ID to |
| 29 |
request by adding ``request_id`` parameter. |
| 30 |
|
| 31 |
Here is an example to assign ``id-1`` ID to a request:: |
| 32 |
|
| 33 |
select Users --request_id id-1 |
| 34 |
|
| 35 |
See also |
| 36 |
-------- |
| 37 |
|
| 38 |
* :doc:`/reference/commands/request_cancel` |
| 39 |
|