我正在尝试在 python 中创建一个监听队列的网络作业。我在 C# 中使用以下代码做了同样的事情,
public static void ProcessQueueMessage([QueueTrigger("webjobsqueue")] string inputText,
[Blob("containername/blobname")]TextWriter writer)
{
writer.WriteLine(inputText);
}
我想要 python 中的等效项来监听队列并触发 python 文件。
最佳答案
目前不支持Python的WebJobs SDK,您可以使用Azure Python SDK这样做是因为您不必使用 WebJobs SDK 来创建 WebJob。
关于python - python 中的 Azure WebJobs,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24504099/