Azure / Azure/azure-functions-durable-python

Add to docs what types are supported out of the box

Ouverte
#421 0 commentaires 2 réactions 0 personnes assignées Voir sur GitHub
documentation
Langage dominant
Python
Étoiles
157
Forks
70
Merge moyen
2 j 10 h
PR mergées (30 j)
2

Description

Feedback from a GBB working with a certain big clothing chain customer.

The customer was trying to return a tuple consisting of a list of custom type and Pandas dataframe. It was not obvious that when an activity function returns, it's actually serialized and deserialized back in the orchestrator function. They were getting error that the tuple didn't implement the `from_json` method .

There is an example in this repo on how to use a custom class as the result, but that's not mentioned anywhere in docs. Would be good to add what types are supported out of the box, i.e. those implementing `to_json` and `from_json`.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Localisez l’exemple existant du dépôt qui montre une classe personnalisée comme résultat d’activité et examinez la documentation environnante. Ajoutez une explication claire de la sérialisation et de la désérialisation, notamment les types pris en charge par défaut et le rôle de to_json et from_json. Incluez le scénario du tuple, du type personnalisé et du Pandas dataframe, puis vérifiez que la documentation est exacte par rapport à l’exemple existant.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
pandas, python
Domaine
documentation
Type d'issue
Documentation
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.