elsa-core icon indicating copy to clipboard operation
elsa-core copied to clipboard

Stuck on ContinueRunningWorkflows

Open johnwc opened this issue 3 years ago • 3 comments

Our nodes where shutdown while a few workflows were running. Upon startup they all are stuck at ContinueRunningWorkflows and will not proceed further. I can not get to the dashboard because it doesn't startup the web server until after all this.

Dashboard node

...
info: Elsa.Runtime.StartupRunner[0] Running startup task ContinueRunningWorkflows
info: Elsa.StartupTasks.ContinueRunningWorkflows[0] Found no workflows with status 'Id'. Nothing to resume
info: Elsa.StartupTasks.ContinueRunningWorkflows[0] Found 12 workflows with status 'Running'. Resuming each one of them

Worker nodes (6)

...
info: Rebus.Threading.TaskParallelLibrary.TplAsyncTask[0] Starting periodic task "CleanupTrackedErrors" with interval 00:00:10
info: Rebus.Bus.RebusBus[0] Bus "Rebus 4" setting number of workers to 1
info: Rebus.Bus.RebusBus[0] Bus "Rebus 4" started
info: Rebus.RabbitMq.RabbitMqTransport[0] Successfully initialized consumer for "dev-workflow-services-worker6767dc84b4dttx-workflow-management-events"
info: Elsa.Runtime.StartupRunner[0] Running startup task ContinueRunningWorkflows

johnwc avatar Jun 25 '22 20:06 johnwc

So the application just gets stuck, no exceptions or anything? Can you reproduce this on your local machine (using a copy of the DB)?

sfmskywalker avatar Jun 27 '22 11:06 sfmskywalker

Yes, I have actually seen this a few times in local development as well. What gets it fixed is me going into the WorkflowInstances table and delete everything, or just the one I know was running. I exported the WorkflowInstances table before reporting this and clearing the rows in case you wanted me to look at anything.

johnwc avatar Jun 27 '22 16:06 johnwc

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 31 '22 02:08 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 30 '22 12:10 stale[bot]