I’m newbie to hangfire and I try a basic recurrent job (on Console app .net 6) like this
GlobalConfiguration.Configuration
.UseSqlServerStorage("Server=.\\sqlexpress;Database=HangfireTest;Integrated Security=SSPI;");
using (var server = new BackgroundJobServer())
{
RecurringJob.AddOrUpdate("LiveFixtures", () => Console.WriteLine("hello"), "0-59 * * * *");
Console.WriteLine("Hangfire Server started. Press any key to exit...");
Console.ReadKey();
}
it works fine, however if I try with a specific hour, both of the following lines fail to work. The current time is 11:19 AM
RecurringJob.AddOrUpdate("LiveFixtures", () => Console.WriteLine("hello"), "0-59 11 * * *");
RecurringJob.AddOrUpdate("LiveFixtures", () => Console.WriteLine("hello"), "0-59 10-23 * * *");