CommonOptions interface
Options common across all faast.js providers. Used as argument to faast().
Signature:
export interface CommonOptions
Remarks
There are also more specific options for each provider. See AwsOptions and LocalOptions.
Properties
Property |
Modifiers |
Type |
Description |
---|---|---|---|
boolean |
(Optional) If true, create a child process to isolate user code from faast scaffolding. Default: true. | ||
number |
(Optional) When childProcess is true, the child process will be spawned with the value of this property as the setting for --max-old-space-size. | ||
number |
(Optional) The maximum number of concurrent invocations to allow. Default: 100, except for the | ||
string |
(Optional) A user-supplied description for this function, which may make it easier to track different functions when multiple functions are created. | ||
{ [key: string]: string; } |
(Optional) Environment variables available during serverless function execution. Default: {}. | ||
string[] |
(Optional) Exclude a subset of files included by CommonOptions.include. | ||
"auto" | "force" | "off" |
(Optional) Garbage collector mode. Default: | ||
(string | IncludeOption)[] |
(Optional) Include files to make available in the remote function. See IncludeOption. | ||
number |
(Optional) Maximum number of times that faast will retry each invocation. Default: 2 (invocations can therefore be attemped 3 times in total). | ||
number |
(Optional) Memory limit for each function in MB. This setting has an effect on pricing. Default varies by provider. | ||
"https" | "queue" | "auto" |
(Optional) Specify invocation mode. Default: | ||
string | object |
(Optional) Specify a package.json file to include with the code package. | ||
number |
(Optional) Rate limit invocations (invocations/sec). Default: no rate limit. | ||
number |
(Optional) Specify how many days to wait before reclaiming cloud garbage. Default: 1. | ||
number |
(BETA) (Optional) Reduce tail latency by retrying invocations that take substantially longer than other invocations of the same function. Default: 3. | ||
number |
(Optional) Execution time limit for each invocation, in seconds. Default: 60. | ||
boolean |
(Optional) Cache installed dependencies from CommonOptions.packageJson. Only applies to AWS. Default: true. | ||
boolean |
(Optional) Check arguments and return values from cloud functions are serializable without losing information. Default: true. | ||
webpack.Configuration |
(Optional) Extra webpack options to use to bundle the code package. |