content/commands/function-stats.md
Return information about the function that's currently running and information about the available execution engines.
The reply is map with two keys:
running_script: information about the running script.
If there's no in-flight function, the server replies with a nil.
Otherwise, this is a map with the following keys:engines: this is a map of maps. Each entry in the map represent a single engine.
Engine map contains statistics about the engine like number of functions and number of libraries.You can use this command to inspect the invocation of a long-running function and decide whether kill it with the [FUNCTION KILL]({{< relref "/commands/function-kill" >}}) command.
For more information please refer to [Introduction to Redis Functions]({{< relref "/develop/programmability/functions-intro" >}}).
| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | |
{{< multitabs id="function-stats-return-info" tab1="RESP2" tab2="RESP3" >}}
Array reply: information about the function that's currently running and information about the available execution engines.
-tab-sep-
Map reply: information about the function that's currently running and information about the available execution engines.
{{< /multitabs >}}