azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

Examples use values 'node' and 'dotnet' for FUNCTIONS_WORKER_RUNTIME

Open timjansenortec opened this issue 2 years ago • 1 comments

The examples on this page use both values 'node' and 'dotnet' for the FUNCTIONS_WORKER_RUNTIME setting. But it is not explained anywhere, what value to use when.

There has been some confusion in my team that the value 'dotnet' should be used when using a custom connector (see section 'Enable built-in connector authoring'). But it seems all default extensions and custom extensions work just fine when using runtime 'node'.

Using runtime 'dotnet' seems to break using javascript inside a workflow.

Is there any scenario where runtime 'dotnet' should be used?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

timjansenortec avatar Aug 17 '22 09:08 timjansenortec

@timjansenortec Thank you for your feedback! We will review and update as appropriate.

mumurug-MSFT avatar Aug 17 '22 13:08 mumurug-MSFT

Hello @timjansenortec - Thanks again for your feedback. The setting should be set to node if you're using the Inline Code action in your workflow. In all other scenarios, you can set it to dotnet runtime.

As the next step, we're proceeding to assign this issue to the content author to review further and take the next course of action.

mike-urnun-msft avatar Aug 23 '22 02:08 mike-urnun-msft

Thanks for your response, but it is still not clear to me. "You can set it to dotnet runtime"...this is pretty vague.

When should runtime 'dotnet' be used? It seems that using 'dotnet' just disables/breaks the 'inline code' action, so why should it ever be used? What does it actually do? What works differently over using runtime 'node'?

timjansenortec avatar Aug 23 '22 08:08 timjansenortec

@timjansenortec; If your project is extension bundle-based (Node.js), "FUNCTIONS_WORKER_RUNTIME" is set to "node".

If your project is NuGet package-based (.NET), "FUNCTIONS_WORKER_RUNTIME" is set to "dotnet".

However, to use Inline Code Operations, you must have "FUNCTIONS_WORKER_RUNTIME" set to "node".

A doc update will go out early next week.

ecfan avatar Sep 03 '22 01:09 ecfan