NOW- ASSIST SKILL TIMEOUT AND EXECUTION LOOP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
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
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti