Skip to content

Commit

Permalink
lol
Browse files Browse the repository at this point in the history
  • Loading branch information
ogp-weeloong committed May 7, 2024
1 parent 42f956e commit 8723370
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,19 @@ const action: IRawAction = {
}

// Testing only
if (
get(JSON.parse(data), 'delayType') &&
!threwAlready.has($.execution.id)
) {
let delayType: string | null = null
try {
delayType = get(JSON.parse(data), 'delayType')
} catch (e) {
// meh
}

if (delayType && !threwAlready.has($.execution.id)) {
threwAlready.add($.execution.id)
throw new RetriableError({
error: 'testing',
delayInMs: 3000,
delayType: get(data, 'delayType'),
delayType: delayType as any,
})
}

Expand Down

0 comments on commit 8723370

Please sign in to comment.