a glue job in a step function is taking so long to continue the next step

0

Hi Folks, i have a glue job in a step function that is taking so long to continue to the next step, i monitor the job by glue studio and it finish well, but after 40 or 45 secs after the job has finished in the step function go to then next step, why?. how can reduce that time to 0 or 1 sec?, thanks

  • Hi, what integration type are you using? Optimized or AWS SDK?

1개 답변
1
수락된 답변

Hello!

This is an expected behavior in case of .sync integration with AWS Glue. Service integrations that use the .sync pattern require additional IAM permissions where Step Functions will make use of a managed Eventbridge rule to monitor the status of the job. However, AWS Glue does not support Eventbridge integration and thus, Step Functions polls the job status using the GetJobRun API call to fetch the status of the job.

By design, the polling schedule is once per minute for the first 10 minutes, and every 5 minutes thereafter. Hence, although your Glue job may complete in just a few seconds, Step Functions will place the GetJobRun call to fetch the job status only after 1 minute, post which the state transition occurs based on the status.

A possible workaround in order to reduce this state transition delay would be to have a request response integration with Glue and use a job poller to manually place the GetJobRun call in the workflow to get the status of the job much quickly.

If your workflow does not have a .sync integration or if there are any other queries specific to your setup, we would require details that are non-public information. Please open a support case with AWS using the following link.

AWS
지원 엔지니어
답변함 일 년 전
profile picture
전문가
검토됨 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠