update the path for temporal (#3131)
This commit is contained in:
@@ -27,9 +27,17 @@ export const findAvailablePort = (): Promise<number> => {
|
||||
// Check if goosed server is ready by polling the status endpoint
|
||||
const checkServerStatus = async (
|
||||
port: number,
|
||||
maxAttempts: number = 80,
|
||||
maxAttempts?: number,
|
||||
interval: number = 100
|
||||
): Promise<boolean> => {
|
||||
if (maxAttempts === undefined) {
|
||||
const isTemporalEnabled = process.env.GOOSE_SCHEDULER_TYPE === 'temporal';
|
||||
maxAttempts = isTemporalEnabled ? 200 : 80;
|
||||
log.info(
|
||||
`Using ${maxAttempts} max attempts (temporal scheduling: ${isTemporalEnabled ? 'enabled' : 'disabled'})`
|
||||
);
|
||||
}
|
||||
|
||||
const statusUrl = `http://127.0.0.1:${port}/status`;
|
||||
log.info(`Checking server status at ${statusUrl}`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user