(policy?: ComponentRetryPolicy)
| 138 | } |
| 139 | |
| 140 | function 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 | |
| 156 | export async function shipsecWorkflowRun( |
| 157 | input: RunWorkflowActivityInput, |
no outgoing calls
no test coverage detected