Worker failed to load Durable Entity function when binding a Storage Queue
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
Línea de trabajo
Comienza con init.py y function.json del ejemplo de Counter reproducido; después, sigue cómo se carga el punto de entrada entity_function y cómo se valida su enlace outputQueueItem. Ejecuta el reproductor local y compara la carga de la función con el enlace de cola presente; se considera terminado cuando la función Counter se carga correctamente con la salida Storage Queue declarada.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
🐛 Describe the bug
I'm learning about Durable Entities , not sure if this is supported or not. I'm using counter sample provided here and trying to bind a Storage Queue . However worker complains about not finding the corresponding parameter:
[2022-07-22T15:02:30.124Z] Worker failed to load function: 'Counter' with function id: 'a80f6d9c-8814-4549-bc62-155546eaf880'.
[2022-07-22T15:02:30.125Z] Result: Failure
Exception: FunctionLoadError: cannot load the Counter function: the following parameters are declared in function.json but not in Python: {'outputQueueItem'}
🤔 Expected behavior
What should have happened?
Worker is able to load Function
☕ Steps to reproduce
What Durable Functions patterns are you using, if any?
HTTPTrigger > Orchestration > Entity
Any minimal reproducer we can use?
https://github.com/enriqueayala/azure-function-counter.git
_ init.py _
import logging
import json
import azure.functions as func
import azure.durable_functions as df
def entity_function(context: df.DurableEntityContext, outputQueueItem: func.Out[str]):
"""A Counter Durable Entity.
A simple example of a Durable Entity that implements
a simple counter.
Parameters
----------
context (df.DurableEntityContext):
The Durable Entity context, which exports an API
for implementing durable entities.
"""
current_value = context.get_state(lambda: 0)
operation = context.operation_name
if operation == "add":
amount = context.get_input()
current_value += amount
elif operation == "reset":
current_value = 0
elif operation == "get":
pass
context.set_state(current_value)
context.set_result(current_value)
outputQueueItem.set(current_value)
main = df.Entity.create(entity_function)
function.json
{
"scriptFile": "__init__.py",
"bindings": [
{
"name": "context",
"type": "entityTrigger",
"direction": "in"
},
{
"type": "queue",
"direction": "out",
"name": "outputQueueItem",
"queueName": "outqueue",
"connection": "AzureWebJobsStorage"
}
]
}
Are you running this locally or on Azure?
Locally
- Lenguaje dominante
- Python
- Estrellas
- 157
- Forks
- 71
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Azure/azure-functions-durable-python
-
Enhancement fixed-in-v2 P3
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Azure/azure-functions-durable-python#617 · 1 comentario ·
-
bug Debuggability fixed-in-v2 P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Azure/azure-functions-durable-python#587 · 2 comentarios · 1 reacción ·
-
Custom object serialization broken for orchestrator return valuesPosiblemente ocupada @andystaples la tomó hace 75 días. Abiertobug fixed-in-v2 P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Azure/azure-functions-durable-python#568 · 1 comentario ·
-
bug fixed-in-v2 P3
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Azure/azure-functions-durable-python#475 · 1 comentario ·
-
Enhancement fixed-in-v2 P3
Dificultad 4/5 3-5 días Aptitud para principiantes 62/100
Azure/azure-functions-durable-python#618 · 1 comentario ·
Todos los issues de Azure/azure-functions-durable-python
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Deltares/imod-python#1940 ·
Los mantenedores suelen responder en 1 día
-
effort: low prio: low ready
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
digitalfabrik/integreat-cms#4621 ·
Los mantenedores suelen responder en 5 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
ioos/compliance-checker#1375 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día