MCPcopy Create free account
hub / github.com/ShipSecAI/studio / mapRetryPolicy

Function mapRetryPolicy

worker/src/temporal/workflows/index.ts:140–154  ·  view source on GitHub ↗
(policy?: ComponentRetryPolicy)

Source from the content-addressed store, hash-verified

138}
139
140function mapRetryPolicy(policy?: ComponentRetryPolicy) {
141 if (!policy) return undefined;
142
143 return {
144 maximumAttempts: policy.maxAttempts,
145 initialInterval: policy.initialIntervalSeconds
146 ? policy.initialIntervalSeconds * 1000
147 : undefined,
148 maximumInterval: policy.maximumIntervalSeconds
149 ? policy.maximumIntervalSeconds * 1000
150 : undefined,
151 backoffCoefficient: policy.backoffCoefficient,
152 nonRetryableErrorTypes: policy.nonRetryableErrorTypes,
153 };
154}
155
156export async function shipsecWorkflowRun(
157 input: RunWorkflowActivityInput,

Callers 1

shipsecWorkflowRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected