Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Scheduled Hangfire tasks won't enque

$
0
0
I found nothing in C1 logs. And there are no Hangfire logs. Can I use C1 Log as Hangfire's 3rd party logger?

The problem, it seems like Hangfire misses the events. I have no problem with Enqueue() method. My generic void Debug.Break() function won't be executed either.
BackgroundJob.Schedule(() => my.Maillist.CreateTasksFromMessage(mesaj.Id), span); // Adds a timed job
BackgroundJob.Enqueue(() => my.Maillist.CreateTasksFromMessage(mesaj.Id)); // Sends message in a blink
BackgroundJob.Schedule(() => my.Utils.Debug.Break(), span); // VS IDE breakpoint that never hits
//my.Maillist.CreateTasksFromMessage(mesaj.Id); // Sends immediately

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>