I have a .net core application which has hangfire 1.7.2 running.
So I have this job, which executes SQL stored procedure and its a long running task, can be of 30 minutes.
This gives me following error: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. The statement has been terminated.
services.AddHangfire(configuration =>
configuration.UseSqlServerStorage(Configuration.GetConnectionString("HangfireConnection"),
new SqlServerStorageOptions
{
SlidingInvisibilityTimeout = TimeSpan.FromMinutes(30),
QueuePollInterval = TimeSpan.Zero,
UsePageLocksOnDequeue = false,
DisableGlobalLocks = false
}));
Please help me out.