关于Azure Webjob日志中的run_command和using_sdk [英] Regarding run_command and using_sdk from Azure webjob logs

查看:59
本文介绍了关于Azure Webjob日志中的run_command和using_sdk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的webjob应该做一些工作,但我们发现它没有运行.当我们浏览了天蓝色的日志(Kudu webjob日志)时,我们发现它正在运行其他文件.像 run_command ="一样,还有其他一些.exe文件.另外, using_sdk 设置为false.您认为可能是什么原因造成的.如何设置正确的路径.我们正在使用章鱼进行部署.

My webjob is suppose to do some work but we found it is not running. When, we went through the azure logs (Kudu webjob logs), we found that it is running some other file. like run_command = "" has some other .exe file. Also, using_sdk is set to false. What do you think might have caused it. How to set right path to it. We are using octopus for deployment.

推荐答案

我们浏览了天蓝色的日志(Kudu webjob日志),发现它正在运行其他文件.像run_command ="一样,还有其他一些.exe文件.

we went through the azure logs (Kudu webjob logs), we found that it is running some other file. like run_command = "" has some other .exe file.

此文档中,我们可以知道WebJobs使用指定的逻辑来决定哪个文件是要在作业目录中运行的脚本:

From this documentation, we could know WebJobs use the specified logic to decide which file is the script to run within the job's directory:

  • 对于每种文件类型,我们首先查找名为run的文件.{文件类型 扩展名}(例如run.cmd或run.exe).

  • Per file type we look first for a file named: run.{file type extension} (for example run.cmd or run.exe).

如果并非所有文件类型都不存在,我们将寻找 具有支持的文件类型扩展名的第一个文件.

If it doesn't exists for all file types, we'll then look for the first file with a supported file type extension.

请尝试将要运行的文件({jobname} .exe)重命名为 run.exe ,以检查其是否按预期运行.

Please try to rename the file ({jobname}.exe) that you want to run to run.exe to check if it runs as expected.

这篇关于关于Azure Webjob日志中的run_command和using_sdk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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