Hangfire acting as an interface to call Differrent REST APIS.
Each independent APIs are taking its own time from few min to 3 hours.
From Hangfire it always shows 1min 40sec (100s).
Below are the env details.
.Net Core, SQLServer
.UseSqlServerStorage(hangfireConnectionString, new SqlServerStorageOptions
{
// CommandBatchMaxTimeout = TimeSpan.FromMinutes(5),
// SlidingInvisibilityTimeout = TimeSpan.FromMinutes(5),
// QueuePollInterval = TimeSpan.Zero,
// UseRecommendedIsolationLevel = true,
// DisableGlobalLocks = true,
//JobExpirationCheckInterval= TimeSpan.FromMinutes(10),
//InvisibilityTimeout = TimeSpan.FromHours(4),
//TransactionTimeout= TimeSpan.FromHours(4),
CommandBatchMaxTimeout = TimeSpan.FromMinutes(5),
SlidingInvisibilityTimeout = TimeSpan.FromMinutes(5),
QueuePollInterval = TimeSpan.FromMilliseconds(100),
UseRecommendedIsolationLevel = true,
UsePageLocksOnDequeue = true,
DisableGlobalLocks = true,
}));