Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning when using unsupported worker runtime. #1024

Closed
peterhuene opened this issue Feb 7, 2019 · 2 comments
Closed

Warning when using unsupported worker runtime. #1024

peterhuene opened this issue Feb 7, 2019 · 2 comments

Comments

@peterhuene
Copy link

peterhuene commented Feb 7, 2019

I have a local.settings.json file with the following contents:

{
  "IsEncrypted": false,
  "Values": {
    "languageWorkers:workersDirectory": "/Users/peterhuene/src/azure-functions-rs/examples/http/root/workers",
    "FUNCTIONS_WORKER_RUNTIME": "Rust"
  },
  "ConnectionStrings": {}
}

The workers directory exists and has a rust subdirectory with a valid worker config that points to a worker that starts correctly by the Azure Functions host. I can execute functions in this worker without issue.

Despite this, when I use func host start, I immediately get this warning:

your worker runtime is not set. As of 2.0.1-beta.26 a worker runtime setting is required.
Please run `func settings add FUNCTIONS_WORKER_RUNTIME <option>` or add FUNCTIONS_WORKER_RUNTIME to your local.settings.json
Available options: dotnet, node, python

This is because the worker runtime value gets "normalized" and if isn't in the list of supported worker runtimes it results in the warning.

This is terribly confusing to my users as the value is present in the local.settings.json.

I'm fine with perhaps a Language worker runtime 'Rust' is not officially supported. or some such message, but to imply the setting isn't there simply because it isn't a "known value" to the tools can be confounding.

@peterhuene
Copy link
Author

This has now turned into a fatal error from the core tools in 2.7.1468:

Can't determin [sic] project langauge from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell]

Why is the core-tools restricting the runtime worker like this?

@peterhuene
Copy link
Author

Closing this as the Azure Functions for Rust project was abandoned.

@ghost ghost locked as resolved and limited conversation to collaborators Aug 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant