I have an Azure WebJob that runs as a singleton. The console log file ends up recording a lot of "Renewing singleton lock..." messages, because the job is a long-running one.
Is there a way to stop generating those messages, or reduce their frequency? They don't seem to add anything to my process monitoring.
I know I can change the default lock duration in the job configuration settings. But I can only extend it to 60 seconds, from the default 15. While that would presumably reduce the frequency of the messages by a 3/4, I'm interested in seeing if there's a way to eliminate them entirely.
Startup Code
Not much to it, but here it is:
public static void Main(string[] args)
{
var config = new JobHostConfiguration();
config.Tracing.ConsoleLevel = TraceLevel.Error;
if( config.IsDevelopment )
{
config.UseDevelopmentSettings();
}
JobHost host = new JobHost( config );
host.RunAndBlock();
}
I'm using Microsoft.Azure.WebJobs 1.1.2, under the net46 framework.