added aws lambda adapter + improvements to handle concurrency

This commit is contained in:
dswbx committed 2025-03-03 15:42:42 +01:00
1 parent 1a72b9e84b
commit 675a39ad5c
22 files changed
+488 -42

No files matched your search

+8 -3
View File
@@ -468,13 +468,18 @@ export class ModuleManager {
});
}
async build() {
async build(opts?: { fetch?: boolean }) {
this.logger.context("build").log("version", this.version());
this.logger.log("booted with", this._booted_with);
// if no config provided, try fetch from db
if (this.version() === 0) {
this.logger.context("no version").log("version is 0");
if (this.version() === 0 || opts?.fetch === true) {
if (this.version() === 0) {
this.logger.context("no version").log("version is 0");
} else {
this.logger.context("force fetch").log("force fetch");
}
try {
const result = await this.fetch();