Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
20 lines
646 B
Plaintext
20 lines
646 B
Plaintext
import type { Job } from '../../index.js';
|
|
import type { RetryConfig } from '../config/types/taskTypes.js';
|
|
/**
|
|
* Assuming there is no task that has already reached max retries,
|
|
* this function determines if the workflow should retry the job
|
|
* and if so, when it should retry.
|
|
*/
|
|
export declare function getWorkflowRetryBehavior({ job, retriesConfig, }: {
|
|
job: Job;
|
|
retriesConfig?: number | RetryConfig;
|
|
}): {
|
|
hasFinalError: false;
|
|
maxWorkflowRetries?: number;
|
|
waitUntil?: Date;
|
|
} | {
|
|
hasFinalError: true;
|
|
maxWorkflowRetries?: number;
|
|
waitUntil?: Date;
|
|
};
|
|
//# sourceMappingURL=getWorkflowRetryBehavior.d.ts.map |