Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 1.33 KB

faastjs.commonoptions.timeout.md

File metadata and controls

28 lines (18 loc) · 1.33 KB
id title hide_title
faastjs.commonoptions.timeout
CommonOptions.timeout property
true

faastjs > CommonOptions > timeout

CommonOptions.timeout property

Execution time limit for each invocation, in seconds. Default: 60.

Signature:

timeout?: number;

Remarks

Each provider has a maximum time limit for how long invocations can run before being automatically terminated (or frozen). The following are the maximum time limits as of February 2019:

Faast.js has a proactive timeout detection feature. It automatically attempts to detect when the time limit is about to be reached and proactively sends a timeout exception. Faast does this because not all providers reliably send timely feedback when timeouts occur, leaving developers to look through cloud logs. In general faast.js' timeout will be up to 5s earlier than the timeout specified, in order to give time to allow faast.js to send a timeout message. Proactive timeout detection only works with CommonOptions.childProcess set to true (the default).