diff --git a/src/api/viya/pollJobState.ts b/src/api/viya/pollJobState.ts index 1a7a1ea..64d2656 100644 --- a/src/api/viya/pollJobState.ts +++ b/src/api/viya/pollJobState.ts @@ -29,10 +29,10 @@ export async function pollJobState( const logger = process.logger || console const defaultPollStrategies: PollStrategies = [ - { maxPollCount: 200, pollInterval: 300, streamLog: false }, - { maxPollCount: 300, pollInterval: 3000, streamLog: false }, - { maxPollCount: 400, pollInterval: 30000, streamLog: false }, - { maxPollCount: 3400, pollInterval: 60000, streamLog: false } + { maxPollCount: 200, pollInterval: 300, streamLog: false }, // INFO: approximately ~2 mins (including time to get response (~300ms)) + { maxPollCount: 300, pollInterval: 3000, streamLog: false }, // INFO: approximately ~5.5 mins (including time to get response (~300ms)) + { maxPollCount: 400, pollInterval: 30000, streamLog: false }, // INFO: approximately ~50.5 mins (including time to get response (~300ms)) + { maxPollCount: 3400, pollInterval: 60000, streamLog: false } // INFO: approximately ~3015 mins (~125 hours) (including time to get response (~300ms)) ] if (pollStrategies === undefined) pollStrategies = defaultPollStrategies diff --git a/src/types/PollOptions.ts b/src/types/PollOptions.ts index 82daf9e..59f8f1f 100644 --- a/src/types/PollOptions.ts +++ b/src/types/PollOptions.ts @@ -1,6 +1,6 @@ export interface PollOptions { maxPollCount: number - pollInterval: number + pollInterval: number // milliseconds streamLog: boolean logFolderPath?: string }