{"acl_categories":["@slow","@scripting"],"arity":2,"categories":["docs","develop","stack","oss","rs","rc","oss","kubernetes","clients"],"command_flags":["noscript","allow_busy"],"complexity":"O(1)","description":"Terminates a function during execution.","duplicateOf":"head:data-ai-metadata","group":"scripting","location":"body","since":"7.0.0","syntax_fmt":"FUNCTION KILL","title":"FUNCTION KILL","tableOfContents":{"sections":[{"id":"redis-software-and-redis-cloud-compatibility","title":"Redis Software and Redis Cloud compatibility"},{"id":"return-information","title":"Return information"}]},"codeExamples":[]}
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).