Comments (6)
@Goldziher: yes, this is a bit of a pain point, naturally Python programmers will create snake_case
declarations and those tend to fail unexpectedly. This is one of those issues that seems easy to fix at a surface level, but requires coordination across several teams and their respective release cycles (the fix here is probably at the 'WebJobs' layer, which is really deep in the .NET piece of Azure Functions) and ultimately, due to there being a workaround, is hard to prioritize.
That said, @nytian - ideally we would throw an error if we detect an _
in the variable names passed in as strings to our decorators. That would be better than failing silently. If that validation doesn't exist today, we should add it.
from azure-functions-durable-python.
Hi, @Goldziher There is a restriction in binding pattern at Azure Function host which can be found here . In general, only alphanumeric character can be accepted by host. Thus, a binding name contains _
is not allowed. Thanks for bringing up this and I will open a PR later to update the parameter description for better understandings.
from azure-functions-durable-python.
Hi, @Goldziher There is a restriction in binding pattern at Azure Function host which can be found here . In general, only alphanumeric character can be accepted by host. Thus, a binding name contains
_
is not allowed. Thanks for bringing up this and I will open a PR later to update the parameter description for better understandings.
Thanks, but can't it be worked around? I would imagine it's easy to convert camel case to snake case and vice versa
from azure-functions-durable-python.
@davidmrdavid David, can you help confirm if we can enable it? I guess the answer is no since we don't have our own(python-specific) bindings settings or check. Thanks!
from azure-functions-durable-python.
@Goldziher: yes, this is a bit of a pain point, naturally Python programmers will create
snake_case
declarations and those tend to fail unexpectedly. This is one of those issues that seems easy to fix at a surface level, but requires coordination across several teams and their respective release cycles (the fix here is probably at the 'WebJobs' layer, which is really deep in the .NET piece of Azure Functions) and ultimately, due to there being a workaround, is hard to prioritize.That said, @nytian - ideally we would throw an error if we detect an
_
in the variable names passed in as strings to our decorators. That would be better than failing silently. If that validation doesn't exist today, we should add it.
Well, I can't argue with your internal processes but this is rather annoying.
It might be to much effort for you guys, but you could simply remap snake case to camel case and record this on the decorator instance itself. It could be part of the logic of the abstract class and thus extensible.
from azure-functions-durable-python.
@Goldziher: possibly, I'd need to sync with the Azure Functions Python team as I'd want to remain consistent with their experience. @vrdmr: is this something y'all have considered?
from azure-functions-durable-python.
Related Issues (20)
- Events added to in-memory queue are not being removed after wait_for_external_event consumes it HOT 4
- Routing/URL matching precedence is ignored
- How to properly pass input arguments to a sub-orchestration function?
- Known regression: Activity input fails to deserialize when the input is an array
- Add call_activity_with_retry to DurableOrchestrationContext class
- Object of type generator is not JSON serializable error in orchestrator function
- Please support the underscore character as a binding name
- [SURVEY] Share your experience to influence what Durable works on next!
- Ability to access 'classic' Azure Function Context, so that I can trace against the same operation_Id
- Dependency injection in Python Azure Functions HOT 1
- Errors in Activity Functions cannot be handled using try...except HOT 2
- context.signal_entity causes sub orchestrator to never finish. HOT 5
- Typing function parameters for activities etc. causes failure HOT 2
- get_status(instance_id) - runtime_status is not up to date HOT 4
- Error "ImportError: cannot import name 'packaging' from 'pkg_resources'" HOT 2
- To fix MEND issue by updating the requirements.txt HOT 1
- Known issue with hosting Durable Functions app on preview Flex Consumption plan
- Single event notification is being yielded every time with `wait_for_external_event` HOT 2
- yield on `task_all` can return None
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-functions-durable-python.