Solved

How does the timeout restriction work in the functions?

  • 5 April 2024
  • 3 replies
  • 29 views

Hi everyone,

 

 

I would like to know if there are timeout restrictions for functions, as I've been executing a function that reads data from a RAWs table in batches, and since there are many records (1M), it takes up to 10 minutes and I get a timeout error. Is there a way to configure this restriction? Running the same function code on a local machine takes around 2 or 3 hours.

 

Regards,

Karina Saylema

@Aditya Kotiyal  @HanishSharma  @Jason Dressel  @Jairo Salaya @Liliana Sierra 

 

 

icon

Best answer by Jason Dressel 6 April 2024, 02:03

View original

3 replies

Userlevel 4
Badge

@Karina Saylema 
Functions limits are based on the base cloud provider limitations.  These are documented here: https://docs.cognite.com/cdf/functions/technical

 

I’d like to understand your workflow intent for using Cognite Functions.  I’d be happy to help with solutioning.
Could you leverage CDF transformations?  Transformations can read from CDF Raw and write to many targets: CDF Staging (Raw),  CDF Resource Types and Data Models.
Could you partition your use case?
 

-Jason  

Userlevel 4
Badge +2

Hi @Karina Saylema,

Can you please provide Jason with the information he requested?

Hi Jason, Dilini

Thank you very much for the information, I will try converting the sequences with the transformations

Reply