使用Python的Azure计时器触发功能 [英] Azure timer trigger function using Python

查看:108
本文介绍了使用Python的Azure计时器触发功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Python 3.x编写Azure计时器触发器.我已经运行了一个这样的功能.我想我知道这样做,可以从JS创建一个,然后删除"index.js"并创建run.py.但是这一次,当我运行python函数时,总是出现一个错误,提示没有这样的文件:index.js".我没有看到函数和'index.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.

有什么想法吗?

推荐答案

我关注了

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.

我建议您直接在kudu上创建python azure函数.只需在新文件夹中创建run.pyfunction.json即可,而不用更改JS模板.

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.

希望它对您有帮助.

这篇关于使用Python的Azure计时器触发功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆