Azure / Azure/azure-functions-host

Provide a mechanism for a JavaScript function to know it has run out of time

Open
#1,204 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 12h
Merged PRs (30d)
38

Description

For .NET functions, there is a CancellationToken that notifies when the function has exceeded its allotted execution time. For JavaScript, we don't have such mechanism.

For comparison, Lambda has a remaining time property on the Context object (http://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-context.html).

Contributor guide

Open the contributing guide

Research direction

Review the host's JavaScript function execution path alongside the existing .NET CancellationToken behavior. Compare the requested mechanism with Lambda's Context remaining-time property. Done means JavaScript functions can reliably detect that their allotted execution time is nearly or already exhausted.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, javascript
Domain
backend, cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.