You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My server is running on multiple instances so I enabled clustering.
My job is running every minute. It's almost working well when I deploy the server. But sometimes the trigger state of the job is blocked because the state of fired trigger is "executing" in the database and it is not removed after the trigger is fired.
Could you please help me to list some reasons for this issue?
This is my code, I program multi-threads so I'm not sure that the issue is from it.
public async Task Execute(IJobExecutionContext context)
{
var stopwatch = new Stopwatch();
stopwatch.Start();
_logger.Info($"Automation Job is run at {DateTime.UtcNow}");
// Run automation event
var automationEventThread = RunCampaignAutomationEvent();
// Run reminder service
var reminderNotificationThread = _reminderService.RunReminderNotification();
// Push notification for mobile based on Start Time and Reminder Before value.
var reminderPushNotificationThread = _reminderService.PushNotificationToAssignee();
await Task.WhenAll(automationEventThread, reminderNotificationThread, reminderPushNotificationThread);
stopwatch.Stop();
_logger.Info("Time elapsed: {0}", stopwatch.Elapsed);
}
The text was updated successfully, but these errors were encountered:
Hi Chris and Frantisek,
My server is running on multiple instances so I enabled clustering.
My job is running every minute. It's almost working well when I deploy the server. But sometimes the trigger state of the job is blocked because the state of fired trigger is "executing" in the database and it is not removed after the trigger is fired.
Could you please help me to list some reasons for this issue?
This is my code, I program multi-threads so I'm not sure that the issue is from it.
The text was updated successfully, but these errors were encountered: