FUNCTION KILL · Valkey

FUNCTION KILL

Terminates a function during execution.

Usage

FUNCTION KILL

Description

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.

Reply

Simple string reply: OK.

Complexity

O(1)

ACL Categories

@scripting @slow

History

See also

EVAL, EVALSHA, EVALSHA_RO, EVAL_RO, FCALL, FCALL_RO, FUNCTION, FUNCTION DELETE, FUNCTION DUMP, FUNCTION FLUSH, FUNCTION HELP, FUNCTION LIST, FUNCTION LOAD, FUNCTION RESTORE, FUNCTION STATS, SCRIPT, SCRIPT DEBUG, SCRIPT EXISTS, SCRIPT FLUSH, SCRIPT HELP, SCRIPT KILL, SCRIPT LOAD, SCRIPT SHOW.