I’ve noticed that after Hangfire executes a job, instead of updating the job status to ‘Successed’, it transitions the status to ‘Scheduled’. This behavior is causing the job to run continuously without stopping, which is not the expected behavior.
Hangfire.AspNetCore
Hangfire.MySqlStorage
Do I need to configure anything?
Current config
.UseStorage(new MySqlStorage(connectionString, new MySqlStorageOptions
{
TransactionIsolationLevel = IsolationLevel.ReadCommitted,
QueuePollInterval = TimeSpan.FromSeconds(15),
JobExpirationCheckInterval = TimeSpan.FromHours(4),
CountersAggregateInterval = TimeSpan.FromMinutes(5),
PrepareSchemaIfNecessary = true,
DashboardJobListLimit = 50000,
TransactionTimeout = TimeSpan.FromMinutes(1),
}));
AddHangfireServer(options =>
{
options.WorkerCount = 1;
//options.SchedulePollingInterval = TimeSpan.FromSeconds(15);
});
thank you.