NOW- ASSIST SKILL TIMEOUT AND EXECUTION LOOP

deepakrao27
Tera Contributor

I'm getting stuck at a point where my skill execution fails due to a timeout, and now it's stuck in a loop without providing any response. It was working perfectly fine until yesterday.

{
"cancelled" : {
"sourceCancelledResourceId" : "" ,
"sourceCancelledFeatureInvocationId" : "" ,
"sourceCancelledMessage" : "" ,
"cancelledMessage" : "Cancelling flow context due to timeout"
},
"status" : "CANCELLED"
}

It is permanently looping now, likely because the token size has become quite large due to the prompt, input data, and output requirements.

Any suggestions or solutions to handle this runtime loop/timeout issue?

 

deepakrao27_1-1780038918575.png

 

1 REPLY 1

Tanushree Maiti
Tera Patron

Hi @deepakrao27 

 

1, Ensure you have latest version installed for Now Assist Skill.

  Refer: Timeout error when calling a Skill Kit LLM from flow designer 

 

2. If the flow contains For Each loops that process large datasets:    

  • Move the steps inside the loop into a separate Subflow.
  • Invoke the Subflow from within the loop.

Refer : KB2825459 Flow execution stuck in PRESUMED_INTERRUPTED state when handling large catalog item variab... 

 

3. Open the Flow Context (sys_flow_context) records and click Cancel Flow Execution to free up the backend engine thread for the record which is got stuck

4. Clear the session cache by typing cache .do  and then try again

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti