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
Directive | Type | Description |
---|---|---|
id | string | (Required) The name of the execution unit. Files with the same execution unit name are guaranteed to stay together. |
keep_warm | boolean | Warning: 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.