Data Factory: GatewayTimeout after Azure Function execution

Anonymous
2023-01-17T15:24:40.3933333+00:00

I have developped an Azure Function in python that connect to a Blob Storgae, read some files, and write these files in Auzre Tables. The code is executed using Azure Functions, has been tested and works in local executing it from VSCode. The problem is that, when I try to execute it from Azure Data Factory, the Data Factory starts, execute the Function (that is able to do the job) and finished with the next error:

Operation on target Ingesta_copy1 failed: Call to provided Azure function 'Ingestion' failed with status-'GatewayTimeout' while invoking 'POST' on 'https://-.azurewebsites.net' and message - '504.0 GatewayTimeout'.

We are using the Premium Azure Function plan, the timeout is stablished to 1 hour and the pipeline only contains the code execution.

Any suggestion?

Thanks

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,908 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,623 questions
0 comments No comments
{count} votes

Accepted answer
  1. Pratik Somaiya 4,211 Reputation points Volunteer Moderator
    2023-01-18T06:01:00.88+00:00

    Hello Torralba-Resino Javier

    Azure Functions times out after 230 seconds regardless of the functionTimeout setting you've configured in the settings.

    If the Azure function takes more than 230 seconds to return a response, need to follow an async pattern or use Durable Functions

    Please find detailed official article here

    3 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2023-01-19T16:59:43.1833333+00:00

    Thanks for the explanation

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.