Azure / Azure/azure-functions-durable-python

Add to docs what types are supported out of the box

Aperta
#421 0 commenti 2 reazioni 0 assegnatari Vedi su GitHub
documentation
Lingua principale
Python
Stelle
157
Fork
70
Merge medio
2g 10h
PR unite (30g)
2

Descrizione

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`.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.