Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1.06 KB

faastjs.cleanupoptions.deleteresources.md

File metadata and controls

24 lines (16 loc) · 1.06 KB
id title hide_title
faastjs.cleanupoptions.deleteresources
CleanupOptions.deleteResources property
true

faastjs > CleanupOptions > deleteResources

CleanupOptions.deleteResources property

If true, delete provider cloud resources. Default: true.

Signature:

deleteResources?: boolean;

Remarks

The cleanup operation has two functions: stopping the faast.js runtime and deleting cloud resources that were instantiated. If deleteResources is false, then only the runtime is stopped and no cloud resources are deleted. This can be useful for debugging and examining the state of resources created by faast.js.

It is supported to call FaastModule.cleanup() twice: once with deleteResources set to false, which only stops the runtime, and then again set to true to delete resources. This can be useful for testing.