Task Engine Not Starting Follow

0
Avatar
Legacy Poster

I have a piece of code that fails intermittently. once it fails it continues to fail

 

var taskManager = new TaskManager();

if(taskManager.TaskEngines.AliveCount == 0)
{
   log("taskManager to be started")
   taskManager.Start(1);
}
if((taskManager != null) && (taskManager.TaskEngines.AliveCount != 0))
{
   //....Print 
}

When code first fails, the first if statement is entered without exception then it doesn't enter the second if statement. It looks like that the line taskManager.Start(1) is not working

2 comments

0
Avatar
Daniele Giovanelli
Comment actions Permalink

Have you solved this? I'm experiencing the same issue in a web application with BT2016, while BT10.1 works properly.

0
Avatar
Joseph Jazdzewski
Comment actions Permalink

The only thing I found is that instances of Bartend.exe are left open on server and they have to be removed.  

Please sign in to leave a comment.