This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice This article is not considered official documentation for K2 software and is provided “as is” with no warranties.
LEGACY CONTENT
This article refers to legacy products, components or features. Therefore, the content in this article is offered "as is" and will no longer be updated. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

Issue

Messages are getting stuck in queues. Restarting the K2 Service does process the messages, however with a lot of messages being stuck the service would have to be restarted the same amount of times as the amount of stucked messages that there are.

Symptoms

Messages are getting stuck in queues.

Resolution

This is a known issue where the workflow scheduled starts: SourceCode.EventBus.Scheduler.ProcessStarter.ProcessStarter

And synchronous:True.

An existing bug is known - where the sync flag on management studio is the wrong way around, so the Async tickbox on Management page on the schedule needs to be unticked.

*Please change the async check so that the process will start async : synchronous:false,

You can confirm with the debugs (the debugs can be obtained via a support ticket) in the K2HostServer_EventBusServer_ logs that the AssemblyTypeName: SourceCode.EventBus.Scheduler.ProcessStarter.ProcessStarter has synchronous:True, this should be synchronous:False

If synchronous:True, then MSMQ will start the process, and wait for a client event or process to finish before returning to process the next MSMQ entry.

Please log a support ticket requesting the ticket to be linked to the exiting Bug item 752237 as well as the debug to be run against your system to confirm that this issue is indeed relevant to your own.
* You would also need to provide your KUID