Skip to content

Commit 4889c72

Browse files
stop build from stopping after 30 mins
1 parent 2e7c006 commit 4889c72

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/lib/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ export async function startTunnelBinary(ctx: Context) {
388388
tunnelArguments.tunnelName = randomTunnelName;
389389
ctx.config.tunnel.tunnelName = randomTunnelName
390390
}
391-
391+
392392
ctx.log.debug(`tunnel config ${JSON.stringify(tunnelArguments)}`)
393393

394394
if (ctx.config.tunnel?.type === 'auto') {

src/tasks/createBuildExec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import { ListrTask, ListrRendererFactory } from 'listr2';
22
import { Context } from '../types.js'
33
import chalk from 'chalk';
44
import { updateLogContext } from '../lib/logger.js';
5-
import { startPollingForTunnel } from '../lib/utils.js';
6-
import { startTunnelBinary } from '../lib/utils.js';
5+
import { startTunnelBinary, startPollingForTunnel } from '../lib/utils.js';
76

87
export default (ctx: Context): ListrTask<Context, ListrRendererFactory, ListrRendererFactory> => {
98
return {
@@ -16,10 +15,11 @@ export default (ctx: Context): ListrTask<Context, ListrRendererFactory, ListrRen
1615
if (ctx.config.tunnel) {
1716
try {
1817
await startTunnelBinary(ctx);
18+
ctx.isStartExec = true;
1919
} catch (error: any) {
2020
ctx.log.debug(`Error starting the tunnel: ${error.message}`);
2121
errorCode = 1;
22-
throw new Error(`Error while starting tunnel binary`);
22+
throw new Error(`Error while starting tunnel binary: ${error.message}`);
2323
}
2424
}
2525

0 commit comments

Comments
 (0)