Fix start&stop & queue running index after swap

This commit is contained in:
Lucio Maranta
2018-09-17 09:38:17 +02:00
parent d3d9d7fcd2
commit 0127abfa23
2 changed files with 15 additions and 5 deletions
@@ -264,6 +264,8 @@ namespace Step.Controllers.WebApi
{
using (NcHandler ncHandler = new NcHandler())
{
ncHandler.Connect();
CmsError cmsError = ncHandler.StartWorkingQueue(processId);
if (cmsError.IsError())
return BadRequest(cmsError.localizationKey);
@@ -277,6 +279,8 @@ namespace Step.Controllers.WebApi
{
using (NcHandler ncHandler = new NcHandler())
{
ncHandler.Connect();
CmsError cmsError = ncHandler.StopWorkingQueue(processId);
if (cmsError.IsError())
return BadRequest(cmsError.localizationKey);