Azure timer trigger function using Python(使用 Python 的 Azure 计时器触发功能)
问题描述
我正在使用 Python 3.x 编写 Azure 计时器触发器.我有一个这样的功能正在运行.我想我知道这样做,从 JS 创建一个,然后删除index.js"并创建一个 run.py.但是这一次,当我运行我的 python 函数时,我总是得到一个错误说没有这样的文件:index.js".我没有看到函数和index.js"文件之间有任何联系.
有什么想法吗?
我关注了
但是,等待一段时间后,它可以工作.我怀疑这是由于缓存造成的.
我建议你直接在 kudu 上创建 python azure 函数.只需在新文件夹中创建 run.py 和 function.json 即可,无需更改 JS 模板.
希望对你有帮助.
I am writing an Azure timer trigger using Python 3.x. I've got one such function running. I think I know to do it, create one from JS and then delete the 'index.js' and create a run.py. But this time, when I run my python function, I always got an error saying "No such file: index.js". I didn't see any bonds between the function and the 'index.js' file.
Any thoughts?
I followed tutorial in comment and reproduce your issue on my side though I refresh the portal.
However, after waiting for some time, it works. I suspect it's due to cache.
I suggest you creating python azure function on kudu directly. Just create run.py and function.json in new folder instead of changing the JS template.
Hope it helps you.
这篇关于使用 Python 的 Azure 计时器触发功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:使用 Python 的 Azure 计时器触发功能
基础教程推荐
- Python 中是否有任何支持将长字符串转储为块文字或折叠块的 yaml 库? 2022-01-01
- Kivy 使用 opencv.调整图像大小 2022-01-01
- 对多索引数据帧的列进行排序 2022-01-01
- matplotlib 设置 yaxis 标签大小 2022-01-01
- 在 Python 中将货币解析为数字 2022-01-01
- 在 Django Admin 中使用内联 OneToOneField 2022-01-01
- 究竟什么是“容器"?在蟒蛇?(以及所有的 python 容器类型是什么?) 2022-01-01
- 比较两个文本文件以找出差异并将它们输出到新的文本文件 2022-01-01
- Python,确定字符串是否应转换为 Int 或 Float 2022-01-01
- kivy 应用程序中的一个简单网页作为小部件 2022-01-01
