1
0
mirror of https://github.com/sasjs/adapter.git synced 2025-12-11 01:14:36 +00:00

docs(poll-job-state): added comments

This commit is contained in:
Yury Shkoda
2023-05-15 14:36:18 +03:00
parent 991519a13d
commit bd02656b3c
2 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -1,6 +1,6 @@
export interface PollOptions {
maxPollCount: number
pollInterval: number
pollInterval: number // milliseconds
streamLog: boolean
logFolderPath?: string
}