Skip to main content
Nintex Community Menu Bar
Solved

Terminating a zombie tasks

  • June 20, 2023
  • 8 replies
  • 123 views
  • Translate

Forum|alt.badge.img+2

I have several assigned tasks that have an error that is preventing submission.  I cannot terminate within console.  Is there an example of how to write a tool to scan tasks and terminate them?

 

Best answer by TravisM

based on the information provided and what I have read, I am inclined to believe my problem cannot be solved.

 

View original
Did this topic help you find an answer to your question?

8 replies

Jake
Forum|alt.badge.img+13
  • Scholar
  • 319 replies
  • June 20, 2023

Hi @TravisM,

 

if you are using Automation Cloud, you should be able to navigate to the tasks area in the automation tab and filter the list by the the workflow you are using. 
 

here you should be able to select multiple tasks and terminate them, if the termination is not working can you please show some screenshots?

 

Jake

Translate

Forum|alt.badge.img+2
  • Author
  • Rookie
  • 4 replies
  • June 20, 2023

As I said in my request, I cannot delete the tasks from the console.  There is a 5 day window on the console, and these have exceeded that time limit.

I’ve been exploring the get tasks actions, but when I terminate a task, it says terminated, but when I examine the tasks list, they are still there.

 

Translate

Jake
Forum|alt.badge.img+13
  • Scholar
  • 319 replies
  • June 20, 2023

Hi @TravisM, should there be that many tasks active? do you think perhaps there is some sort of loop in play here, you might have to terminate the instances themselves and figure why these loops are happening before you correct the issue. 

 

terminating the workflow instances will close the tasks and you can do this en-masse 

 

 

Translate

Forum|alt.badge.img+2
  • Author
  • Rookie
  • 4 replies
  • June 20, 2023

Let me explain.  I have a scheduled start workflow that fires off on the first of each  month.  It reads a list of work, then calls a component workflow, passing in all the required parameters.  The component workflow then assigns a form task as needed.  This past run had 52 list items, with varying number of assignees.  For whatever reason, a required parameter on these 6 is not rendering on the form.  When I examine the logs, the parameters were passed, but the task is not recognizing them for some reason.  I have opened a ticket with Nintex, but they are still investigating.  In the mean time, I need to kill these 6 zombies.  The missing parameter is preventing a submission.  I resubmitted these 6 again and the resubmitted tasks processed successfully on the 2nd submission. And the original workflow instance has completed so I cannot call up the instance.

Translate

Forum|alt.badge.img+2
  • Author
  • Rookie
  • 4 replies
  • June 20, 2023

so, back to my original question.  Has anyone written any tools or utilities that can query tasks and terminate them?

 

Translate

Jake
Forum|alt.badge.img+13
  • Scholar
  • 319 replies
  • June 20, 2023

Hi @TravisM,

 

Yes tasks can be terminated programatically.

 

You can do this 2 ways both require an App token to be generated in the settings. 

https://help.nintex.com/en-US/nwc/Content/Settings/APItokens.htm

 

 

One way to do this would be by building a workflow and using the NAC extensions kit to find and close the tasks: 

https://gallery.nintex.com/t/nintex-workflow-cloud-api

 

I would suggest find the instances and terminating them as there is no means of ‘terminating’ tasks only completing them with an outcome. 

 

Another method would be the same but slightly more manually via Postman or the Nintex API reference page, it has a working API tool.

 

Depending on how many you have however there might be some code needed but these are the 2 calls you need.

https://developer.nintex.com/docs/nc-api-docs/046832983606a-list-a-workflow-s-instances

https://developer.nintex.com/docs/nc-api-docs/f088a75546a21-stop-an-instance

 

 

Personally I would create a workflow to do this as it will be easiest to manage and use again if required.

 

I will leave the issues with the instances to the support team to investigate but if you need any other assistance please let me know.

 

Kind regards

Jake 

Translate

MillaZ
Nintex Employee
Forum|alt.badge.img+21
  • Nintex Employee
  • 671 replies
  • June 26, 2023

Hi @TravisM 
Have you resolved this question? 

Translate

Forum|alt.badge.img+2
  • Author
  • Rookie
  • 4 replies
  • Answer
  • June 26, 2023

based on the information provided and what I have read, I am inclined to believe my problem cannot be solved.

 

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings