What's new in Valkey 9.0? Discover new features and improvements. Read the announcement.

FUNCTION KILL

Terminates a function during execution.

Usage
FUNCTION KILL
Complexity
O(1)
Since
7.0.0
ACL Categories
@scripting, @slow
Command flags
NOSCRIPT, ALLOW_BUSY

Kill a function that is currently executing.

The FUNCTION KILL command can be used only on functions that did not modify the dataset during their execution (since stopping a read-only function does not violate the scripting engine's guaranteed atomicity).

For more information please refer to Introduction to Valkey Functions.

Replies

RESP2

RESP3