简体   繁体   English

您可以使用 C# 来编排(持久功能)Python Azure Z86408593C34AF7262F9

[英]Can you use C# to orchestrate (durable function) a Python Azure Function?

We are using a Python Azure Function for ETL based on several files that are dropped off in blob storage every day at the same time.我们使用 Python Azure Function 用于 ETL,基于每天同时在 blob 存储中删除的多个文件。 Our current workflow is using several Python functions to pick up those files (using the azure-storage-blob Python library), transform them, load them to our Azure SQL database, and then archive all the files to cold storage. Our current workflow is using several Python functions to pick up those files (using the azure-storage-blob Python library), transform them, load them to our Azure SQL database, and then archive all the files to cold storage. Right now we are relying on timer triggers because some of the functions depend on other functions to be complete before manipulating and archiving the source files.现在我们依赖计时器触发器,因为在操作和归档源文件之前,一些功能依赖于其他功能才能完成。

It seems like using Azure Durable Functions would be a better workflow for this, since we could orchestrate the functions better and decide when either the next ETL process should run or when the files should be archived.似乎使用 Azure 持久函数将是一个更好的工作流程,因为我们可以更好地协调函数并决定何时运行下一个 ETL 过程或何时归档文件。 The problem is that Azure Durable Functions is not yet supported in Python.问题是 Python 中尚不支持 Azure 持久功能。 Is it possible to use a C# Durable Function to orchestrate a Python Azure Function? Is it possible to use a C# Durable Function to orchestrate a Python Azure Function? Or does Microsoft recommend using the preview Python Durable Functions ( https://github.com/Azure/azure-functions-durable-python )?或者 Microsoft 是否建议使用预览版 Python 持久功能( https://github.com/Azure/azure-functions-durable-python )? The documentation says that Python Durable Functions should have consumption plan support by May 2020.文档说 Python Durable Functions 应该在 2020 年 5 月之前支持消费计划。

Also, have you considered using Logic Apps as the orchestrator for your functions?此外,您是否考虑过使用逻辑应用作为您的功能的编排器? Seems like that would be a more rapid way to implement orchestration.似乎这将是一种更快速的方式来实现编排。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM