Azure WebJob Command Timeout

后端 未结 2 1995
遇见更好的自我
遇见更好的自我 2021-01-01 22:40

We are having issue with Azure Web Jobs. We created a C# console application, zipped it, and created the new Web Job. It\'s a c# console app that will constantly hit one of

相关标签:
2条回答
  • 2021-01-01 23:07

    For triggered WebJobs the way to increase idle timeout is using the app setting: WEBJOBS_IDLE_TIMEOUT. Set it to your desired timeout in seconds.

    The error is confusing and only refers to idle timeout during deployment.

    https://github.com/projectkudu/kudu/wiki/Web-jobs#configuration-settings

    0 讨论(0)
  • 2021-01-01 23:07

    This seems to have solved my problem:

    if (Counter % 25 == 0)
       Console.WriteLine("Heartbeat");
    

    I guess you have to keep writing out to console to keep the JOB running.

    0 讨论(0)
提交回复
热议问题