TranscriptLanguage - TypeScript OntologyEdit Function Timeout Error

To OntologyEdit function, I am passing Input variable ‘key’ and doing a search().
Then performing edit of this object.

Code:
transcription = await objectA[0].mediaReference.transcribeAsync({
language: TranscriptionLanguage.ENGLISH,
performanceMode: TranscriptionPerformanceMode.MORE_ECONOMICAL,
outputFormat: {type: “plainTextNoSegmentData”, addTimestamps: false}
});

But still I get this error- - - - - -
I am encountering a ‘FunctionExecutionTimedOut’ error when using a TypeScript OntologyEdit function in Foundry.

An error (Actions:FunctionExecutionTimedOut) occurred with this request (error id: xxxxxx-xxxx-xxxx). Consider modifying the execution mode to reduce the number of objects passed to each function execution.

The default wall time limit for TypeScript functions is 60 seconds (as documented here). You can increase this in the Ontology Manager application up to 280 seconds (documentation). 280 seconds is currently the maximum wall time that any type of Function can run for.

You can also refer to this section of the documentation for tips on optimizing performance, but there might not be anything applicable depending on your exact code.