ifto:AWS Lambda(λ)超时的简单调试模块

时间:2021-02-03 18:51:07
【文件属性】:
文件名称:ifto:AWS Lambda(λ)超时的简单调试模块
文件大小:2.17MB
文件格式:ZIP
更新时间:2021-02-03 18:51:07
nodejs npm aws lambda typescript IFTO-If(Lambda)超时 打字稿文档: : 该模块的目的是在超时期间用作调试工具。 当lambda退出存在且Task timed out after 2.00 seconds时,很难调试。 一种解决方案是增加Timeout值。 尽管这可以解决问题(有时),但不能保证在完成适当的调试之前可能不会再次发生超时。 另一个解决方案是使用像这样的模块并启用日志记录。 问题是,无论timeout如何,都会创建日志条目。 该模块如何工作? 此程序包使用对象中提供的getRemainingTimeInMillis()可能的timeout错误。 如下所述,在lambda执行期间传递了 。
【文件预览】:
ifto-master
----.travis.yml(148B)
----package.json(2KB)
----tslint.json(2KB)
----test()
--------spy_http.ts(5KB)
--------mocha.opts(128B)
--------size_restricted_log.ts(3KB)
--------spy.ts(421B)
--------ifto.ts(8KB)
--------base_module.ts(763B)
--------index.ts(596B)
----.prettierrc(206B)
----.prettierignore(12B)
----_config.yml(74B)
----LICENSE(1KB)
----package-lock.json(90KB)
----.npmignore(155B)
----tsconfig.json(311B)
----doc()
--------assets()
--------index.html(291KB)
--------globals.html(290KB)
--------classes()
--------interfaces()
--------modules()
----.gitignore(85B)
----lib()
--------ifto.ts(7KB)
--------spy_modules()
--------util()
--------index.ts(599B)
----CODE_OF_CONDUCT.md(3KB)
----README.md(7KB)

网友评论