FUNCTION KILL

Usage:
FUNCTION KILL
Complexity:
O(1)
Since:
7.0.0

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.