Skip to content

Commit 6fff053

Browse files
committed
start is not async
1 parent 9cf17ce commit 6fff053

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

packages/cli-v3/src/entryPoints/managed-run-controller.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,7 @@ class ManagedRunController {
14391439
await this.taskRunProcess?.cancel();
14401440
}
14411441

1442-
async start() {
1442+
start() {
14431443
this.sendDebugLog({
14441444
runId: this.runFriendlyId,
14451445
message: "Starting up",
@@ -1478,12 +1478,7 @@ class ManagedRunController {
14781478
}
14791479
}
14801480

1481-
const workerManifest = await loadWorkerManifest();
1481+
const manifest = await readJSONFile("./index.json");
1482+
const workerManifest = WorkerManifest.parse(manifest);
14821483

1483-
const prodWorker = new ManagedRunController({ workerManifest });
1484-
await prodWorker.start();
1485-
1486-
async function loadWorkerManifest() {
1487-
const manifest = await readJSONFile("./index.json");
1488-
return WorkerManifest.parse(manifest);
1489-
}
1484+
new ManagedRunController({ workerManifest }).start();

0 commit comments

Comments
 (0)