Azure / Azure/azure-functions-host

Worker Indexing - support custom handlers

Open
#7,887 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 10h
Merged PRs (30d)
36

Description

Allow custom handlers to return functions metadata.

Proposal:

Add a `functionsMetadataRoute` (or something) to the custom handlers config in host.json:

```json
{
"version": "2.0",
"customHandler": {
"description": {
"defaultExecutablePath": "./Handler",
"functionsMetadataRoute": "/functionsmetadata"
}
}
}
```

If the property is specified, instead of indexing functions from the filesystem, make an HTTP GET request to the specified route on the custom handler to retrieve metadata.

@surgupta-msft @fabiocav any thoughts?

Contributor guide

Open the contributing guide

Research direction

Start by locating the custom-handler configuration and the existing filesystem-based function indexing path. Then trace how a configured GET route could return functions metadata, and define completion as successfully indexing functions from that response instead of the filesystem; no file or test is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.