Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Best way to stop long running workflow

Avatar

Community Advisor

Hi,

 

Best practice question here, have a workflow that has been running for couple of days now on a single file that is normally processed in seconds...

 

What is the best way to stop this file processing job.

 

Without damaging anything on the Author instance ideally?

 

 

Thanks,

Peter

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi Jorg,

Unfortunately, simple restart did not stop background process...

Following steps seem to stop the background process:

 

  1. Make sure workflows are terminated via the normal /workflows window.

 

  1. Open ip:port/system/console/bundles:

 

STOP Adobe - XMPFiles Worker host com.adobe.xmp.worker.files.host                            

STOP Adobe XMPCore com.adobe.xmp.xmpcore5.0.20

STOP Day Communique 5 DAM Asset Handler Implementationcom.day.cq.dam.cq-dam-handler 5.6.6                           

STOP Day Communique 5 WCM Workflow com.day.cq.wcm.cq-wcm-workflow 5.6.4                  

STOP Day Communique 5 Workflow Implementation com.day.cq.workflow.cq-workflow-impl 5.6.8

 

RESTART CQ BOX

 

START Adobe - XMPFiles Worker host com.adobe.xmp.worker.files.host                          

START Adobe XMPCore com.adobe.xmp.xmpcore5.0.20

START Day Communique 5 DAM Asset Handler Implementationcom.day.cq.dam.cq-dam-handler 5.6.6                           

START Day Communique 5 WCM Workflow com.day.cq.wcm.cq-wcm-workflow 5.6.4                

START Day Communique 5 Workflow Implementation com.day.cq.workflow.cq-workflow-impl 5.6.8

 

RESTART CQ BOX

 

Thanks,

Peter

View solution in original post

6 Replies

Avatar

Level 8

Are you actually sure that the process is still running? It's possible that the process either never launched or ended abnormally but left the workflow in a stalled state. Have you checked the logs around the time the workflow kicked off for error messages that might indicate a problem in the process?

Are you seeing log output that indicates the job is still running? Or looked at thread dump and seen the thread running? Short of a restart I am not sure there is any way to ensure that the thread. You can try moving the workflow back a step, or terminating it and restarting, but there is no guarantee that thread from the previous job has stoppped. 

Avatar

Community Advisor

Hi,

Thank you for your reply,

Yep, it's running as it's been clearly visible in the thread dumps. Also in the dam assets I can see icon that indicates workflow is still running. Logs indicate same.

Thanks,

Peter

Avatar

Level 3

You can try terminating the workflow under the workflow console: /libs/cq/workflow/content/console.html

Click on the "Instances" tab, select the workflow, right-click and terminate.

Avatar

Employee Advisor

Hi Peter,

when the workflow is visible in the threaddumps, it is obviously still running. But then you also determine where it has stalled. Based on the outcome of this check a simple restart could help.

Jörg

Avatar

Correct answer by
Community Advisor

Hi Jorg,

Unfortunately, simple restart did not stop background process...

Following steps seem to stop the background process:

 

  1. Make sure workflows are terminated via the normal /workflows window.

 

  1. Open ip:port/system/console/bundles:

 

STOP Adobe - XMPFiles Worker host com.adobe.xmp.worker.files.host                            

STOP Adobe XMPCore com.adobe.xmp.xmpcore5.0.20

STOP Day Communique 5 DAM Asset Handler Implementationcom.day.cq.dam.cq-dam-handler 5.6.6                           

STOP Day Communique 5 WCM Workflow com.day.cq.wcm.cq-wcm-workflow 5.6.4                  

STOP Day Communique 5 Workflow Implementation com.day.cq.workflow.cq-workflow-impl 5.6.8

 

RESTART CQ BOX

 

START Adobe - XMPFiles Worker host com.adobe.xmp.worker.files.host                          

START Adobe XMPCore com.adobe.xmp.xmpcore5.0.20

START Day Communique 5 DAM Asset Handler Implementationcom.day.cq.dam.cq-dam-handler 5.6.6                           

START Day Communique 5 WCM Workflow com.day.cq.wcm.cq-wcm-workflow 5.6.4                

START Day Communique 5 Workflow Implementation com.day.cq.workflow.cq-workflow-impl 5.6.8

 

RESTART CQ BOX

 

Thanks,

Peter