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

An activity call to a non-existent function should error-out #197

Open
davidmrdavid opened this issue Jun 19, 2020 · 2 comments · May be fixed by Azure/azure-functions-durable-extension#1677
Labels
bug Something isn't working Enhancement New feature or request
Milestone

Comments

@davidmrdavid
Copy link
Collaborator

Currently, if we try to make an activity call to a non-existent function, the orchestrator simply sleeps indefinitely. We should instead validate that the function exists and error out if not.

Additionally, we should consider doing some basic typo-checking in case the function exists under a slightly different name. Think of Hello versus Hello1. The latter is a scenario that you can get into when using the plugin to create functions.

@davidmrdavid davidmrdavid added the bug Something isn't working label Jun 19, 2020
@ghost ghost added the Needs: Triage 🔍 label Jun 19, 2020
@davidmrdavid davidmrdavid self-assigned this Jun 19, 2020
@davidmrdavid
Copy link
Collaborator Author

tagging @ConnorMcMahon and @cgillum for discussion on the typo-checking proposal.

@cgillum
Copy link
Member

cgillum commented Jun 19, 2020

The fact that the orchestrator hangs indefinitely is definitely a bug that we should investigate and prioritize fixing. We can probably separate that issue into its own. At a minimum it should cause the orchestrator to transition into a Failed state.

I agree it would be idea if the callActivity and callSubOrchestrator APIs threw an error. The challenge we have is that the out-of-proc SDKs don't know about what activities exist today, only the extension knows this today. One potential solution would be to include the list of activity, orchestrator, and entity function names in the context payload and have the SDK validate against those lists.

I don't have a recommendation about typo-checking since I think that will need to be language-specifc. It would be great if we could have a custom linter check for this, similar to what we have with the C# analyzer. That would also make sense as a separate issue.

@cgillum cgillum added Enhancement New feature or request and removed Needs: Triage 🔍 labels Jun 19, 2020
@davidmrdavid davidmrdavid added this to the 1.4.7 milestone Mar 9, 2021
@davidmrdavid davidmrdavid removed their assignment Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Enhancement New feature or request
Projects
None yet
2 participants