Skip to content

Conversation

davidmrdavid
Copy link
Collaborator

A follow-up to #230 with an azure-cloud tested fan-out-fan-in sample and READMEs with working links

Copy link

@ConnorMcMahon ConnorMcMahon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple small nits, but otherwise a nice set of changes!

async def main(req: func.HttpRequest, starter: str) -> func.HttpResponse:
client = df.DurableOrchestrationClient(starter)
payload = req.get_body()
payload: str = json.loads(req.get_body().decode())

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What exactly is this change for?

It may be worth commenting why this is necessary, especially since this is a sample.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes, this is needed to load the JSON HTTP payload, which is otherwise generally interpreted as bytes. Added the comment!

@davidmrdavid davidmrdavid merged commit 9987f55 into dev Dec 8, 2020
@davidmrdavid davidmrdavid deleted the dajusto/docs-review branch December 8, 2020 19:52
@sgkim99
Copy link

sgkim99 commented Apr 26, 2023

samples/fan_in_fan_out/E2_GetFileList/init.py
I followed this fan-in-fan-out samples and works great for local version(Windows host and Python).
But when I deploy this function app and then trigger with my PC local directory(ex. D:\Test), nothing happens.
And found that if I trigger with path provided in the article(""/home/site/wwwroot"), functions server local file is backed-up.
Could you show me how to back up local PC directory for deploy version?
Any hints are highly appreciated. Many Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants