You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This feature request takes three parts. (Note that I use the term "sub-request" to mean one single request out of a batch.)
1. Request status: RequestStatus::Interrupted
The status code for the response of an interrupted sub-request. Value would be in the 200s (currently 208).
2. Request type: InterruptRequestBatch
Interrupts a request batch previously sent by this client. The sub-request currently being processed will finish (unless it's a Sleep, in which case it will also be interrupted), and the next sub-request will fail with RequestStatus::Interrupted (as will all further sub-requests, if haltOnFailure was set to false).
Has the following parameters:
requestBatchId: The requestId sent as part of the original request batch that should now be cancelled.
?afterSubRequestId: The requestId sent for the specific sub-request immediately before which the batch should be cancelled. If left empty, execution is halted immediately.
Doesn't return data, but may return the following request statuses:
100 Success: The request batch was interrupted successfully.
206 UnsupportedRequestBatchExecutionType: An attempt was made to Interrupt a RequestBatchExecutionType::Parallel request.
600 ResourceNotFound:
No request batch with the given ID was made by this client.
No sub-request with the given ID was made within the given request batch.
604 InvalidResourceState:
No request batch with the given ID was made by the client, but a request batch with the same ID was made by another client.
The request batch with the given ID has already completed (or the last sub-request has already started processing).
The sub-request with the given ID has already started (or finished) processing.
3. Option for batch requests: interruptOnDisconnect
This optional boolean is specified as part of the d of an original request batch. It defaults to false, which maintains current behavior, but on true it will immediately interrupt the request batch if the client that sent it disconnects during execution (the same as if an InterruptRequestBatch request had been used on it).
Requested Feature Usage Scenario
This would be useful for animations run through a websocket or other types of long request batch that involve sleeping.
The text was updated successfully, but these errors were encountered:
Feature Request Type
RPC Request
Feature Request Type (Other)
No response
Requested Feature
This feature request takes three parts. (Note that I use the term "sub-request" to mean one single request out of a batch.)
1. Request status: RequestStatus::Interrupted
The status code for the response of an interrupted sub-request. Value would be in the 200s (currently 208).
2. Request type: InterruptRequestBatch
Interrupts a request batch previously sent by this client. The sub-request currently being processed will finish (unless it's a Sleep, in which case it will also be interrupted), and the next sub-request will fail with RequestStatus::Interrupted (as will all further sub-requests, if
haltOnFailure
was set to false).Has the following parameters:
Doesn't return data, but may return the following request statuses:
3. Option for batch requests:
interruptOnDisconnect
This optional boolean is specified as part of the
d
of an original request batch. It defaults tofalse
, which maintains current behavior, but ontrue
it will immediately interrupt the request batch if the client that sent it disconnects during execution (the same as if an InterruptRequestBatch request had been used on it).Requested Feature Usage Scenario
This would be useful for animations run through a websocket or other types of long request batch that involve sleeping.
The text was updated successfully, but these errors were encountered: