Skip to content

Application gets stuck when restarting unfinished jobs  #5

@steviesteve

Description

@steviesteve

Having a problem when running Mendix 7.5 it seems that when jobs are not finished after a restart and re-queuing is attempted the application will hang when running the start up microflow (ProcessQueue.AfterStartup_InitialiseQueue).

The area code where the app hangs is around here where the commit occurs:
javasource/processqueue/queuehandler/ObjectQueueExecutor.java:59

public ObjectQueueExecutor( IContext context, IMendixObject action, IMendixObject process, String calling_microflow_name ) 
	{
		this.context = context;
		this.QAGuid = action.getId().toLong();
		this.callingMicroflowName = calling_microflow_name;
		this.actionNr = action.getValue(this.context, QueuedAction.MemberNames.ActionNumber.toString());
		this.referenceText = action.getValue(this.context, QueuedAction.MemberNames.ReferenceText.toString());
		this.microflowName = (String) process.getValue(this.context, Process.MemberNames.MicroflowFullname.toString());
		
		this.action = action;
		this.action.setValue(this.context, QueuedAction.MemberNames.Phase.toString(), ActionStatus.Queued.toString());
		
		//Make sure we commit the latest info so status changes always get updated in the client as soon as possible.
		// E.g. actions being set to "Queued".
		if( this.action.isNew() || this.action.isChanged() ) { 
			try {
				Core.commit( this.context, this.action );
			} catch (CoreException e) {
				_logNode.error("Error while trying to commit QueuedAction " + this.action.getValue(this.context, QueuedAction.MemberNames.ActionNumber.toString()) + " from queue", e);		
			}
		}
	}

Commenting the commit out out seems to resolve the problem

Any thoughts on this would be appreciated
Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions