Azure / Azure/azure-functions-host

Language Worker Validation

Open
#3,108 2 comments 0 reactions 1 assignee Claimed by @mhoeger View on GitHub
2.x area: out-of-proc
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 10h
Merged PRs (30d)
36

Description

There are validation steps that we should take to make sure that our language worker can actually run. For example, with Node, we need node path to be at a specific version of node.

**Solution proposal:**
We should add a path to a validation script in worker.config.json of each language worker.
The validation script should be a language-specific validation script and should `exit 0` on successful validation. On unsuccessful validation, the script should `exit 1` with appropriate error message
The functions host should find and run this validation script (async) and log the language-specific error message if validation is unsuccessful.

Likely, the validation will be run on worker startup failure for appropriate diagnostics.

cc: @pragnagopa

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.