Athena slow when called from step function

0

I have an athena query that runs in around 3 secs both from console and even is called using pyathena. I have added the query execution into a step function as I need to perform some pre and post process. When executed into the step function the query task takes 50 seconds ... I am lost. Any suggestion?

My step function task looks like:

{
  "Type": "Task",
  "Resource": "arn:aws:states:::athena:startQueryExecution.sync",
  "Parameters": {
    "QueryExecutionContext": {
      "Catalog": "AwsDataCatalog"
    },
    "QueryString.$": "$.responseBody.sql",
    "WorkGroup": "*****",
    "ResultConfiguration": {
      "OutputLocation": "s3://******"
    }
  },
  "TimeoutSeconds": 900,
  "ResultPath": "$.responseBody",
  "Next": "presign_url"
}
profile picture
질문됨 7달 전142회 조회
답변 없음

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

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

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

관련 콘텐츠