media-insights-on-aws
media-insights-on-aws copied to clipboard
Skip 10 second Wait stage when NextToken is in Step Function input
When operators are processing paged results, they process 10 pages at a time then output the next page's NextToken to the step function. The Step Function then calls a wait stage that delays for 10 seconds, then enters the check Status stage where it calls the lambda function again with NextToken in the input so it can continue reading pages from where it left off.
I'm entering this issue because the wait stage should be skipped if NextToken is present, since there's no reason to wait 10 seconds before continuing to read paged results.