Skip to main content

Execution Unit

@klotho::execution_unit

Specified at the top of a file and applies only to the file which it is specified.

note

Currently, units are always split, with no mechanism for recombining them. The ability to recombine execution units is an upcoming feature.

Directives

DirectiveTypeDescription
idstring(Required) The name of the execution unit. Files with the same execution unit name are guaranteed to stay together.
keep_warmbooleanWarning: Experimental and subject to change.
Whether this execution unit should be kept warm (AWS Lambda only).

Examples

This specifies an execution unit with the id srvless-quotes.

# @klotho::execution_unit {
# id = "srvless-quotes"
# }

Configuration

For more information about configuring execution units, visit our execution unit configuration page.