我现在间歇性地面临这个问题,其中查询(从存储过程调用)适用于CXSYNC_PORT等待类型并继续保持更长的时间(有时长达 8 小时)。我不得不终止该进程,然后重新运行该过程。此过程每 2 小时从 ADF 管道调用一次。
这种行为的原因是什么,我该如何解决这个问题?
我在使用 Webhook url 触发 Azure webjobs 时遇到问题。
我创建了一个简单的“NoAutomaticTriggerAttribute”Azure web 作业,下面是代码
例如:
class Program
{
// Please set the following connection strings in app.config for this WebJob to run:
// AzureWebJobsDashboard and AzureWebJobsStorage
static void Main()
{
var test = ConfigurationManager.ConnectionStrings["AzureWebJobsDashboard"].ConnectionString.ToString();
var config = new JobHostConfiguration(test);
if (config.IsDevelopment)
{
config.UseDevelopmentSettings();
}
var host = new JobHost(config);
host.Call(typeof(Functions).GetMethod("ProcessMethod"));
// The following code ensures that the WebJob will be running continuously
host.RunAndBlock();
}
}
Run Code Online (Sandbox Code Playgroud)
下面是函数类代码:
public class Functions
{
// This function will …Run Code Online (Sandbox Code Playgroud)