TaskQueues showing error when triggered from schedule event

0
Hi,    I have a situation where i want to load data from api after working hrs. I have created a schedule event and in that event i created a microflow to run the batch microflow in taskqueues. It worked fine, But after 1-2 hrs some of the taskqueues are failed with the below error. I am usig mendix 10.18.5   Interrupt by admin    at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.$anonfun$execute$1(MicroflowObject.scala:32)    at scala.Option.flatMap(Option.scala:283)    at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.scala:26)    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.scala:199)    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeMicroflow(MicroflowImpl.scala:132)    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.$anonfun$executeAction$1(MicroflowImpl.scala:112)    at com.mendix.modules.opentelemetry.OpenTelemetryUtil$OpenTelemetryServiceUtil.$anonfun$withSpan$2(OpenTelemetryUtil.scala:36)    at com.mendix.modules.opentelemetry.OpenTelemetryUtil$.$anonfun$usingSpanWithCustomStatus$2(OpenTelemetryUtil.scala:18)    at scala.util.Using$.apply(Using.scala:296)    at com.mendix.modules.opentelemetry.OpenTelemetryUtil$.com$mendix$modules$opentelemetry$OpenTelemetryUtil$$usingSpanWithCustomStatus(OpenTelemetryUtil.scala:17)    at com.mendix.modules.opentelemetry.OpenTelemetryUtil$OpenTelemetryServiceUtil.usingSpanWithCustomStatus(OpenTelemetryUtil.scala:41)    at com.mendix.modules.opentelemetry.OpenTelemetryUtil$OpenTelemetryServiceUtil.withSpanWithCustomStatus(OpenTelemetryUtil.scala:33)    at com.mendix.modules.opentelemetry.OpenTelemetryUtil$OpenTelemetryServiceUtil.withSpan(OpenTelemetryUtil.scala:36)    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.scala:110)    at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:63)    at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71)    at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:48)    at com.mendix.core.actionmanagement.internal.InternalCoreAction.call(InternalCoreAction.java:66)    at com.mendix.basis.actionmanagement.ActionManager.$anonfun$executeSync$2(ActionManager.scala:114)    at com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:20)    at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:114)    at com.mendix.basis.component.ExecutionCore.doExecuteSync(ExecutionCore.scala:149)    at com.mendix.basis.component.ExecutionCore.doExecuteSync$(ExecutionCore.scala:148)    at com.mendix.basis.component.InternalCore.doExecuteSync(InternalCore.scala:22)    at com.mendix.basis.component.ExecutionCore.executeSync(ExecutionCore.scala:98)    at com.mendix.basis.component.ExecutionCore.executeSync$(ExecutionCore.scala:95)    at com.mendix.basis.component.InternalCore.executeSync(InternalCore.scala:22)    at com.mendix.modules.microflowengine.MicroflowExecuter$.executeSync(MicroflowExecuter.scala:19)    at com.mendix.modules.microflowengine.actions.SubMicroflowAction.execute(SubMicroflowAction.scala:36)    at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.$anonfun$execute$1(MicroflowObject.scala:29)    at scala.Option.flatMap(Option.scala:283)    at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.scala:26)    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.scala:199)    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeMicroflow(MicroflowImpl.scala:132)    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.$anonfun$executeAction$1(MicroflowImpl.scala:112)    at com.mendix.modules.opentelemetry.OpenTelemetryUtil$OpenTelemetryServiceUtil.$anonfun$withSpan$2(OpenTelemetryUtil.scala:36)    at com.mendix.modules.opentelemetry.OpenTelemetryUtil$.$anonfun$usingSpanWithCustomStatus$2(OpenTelemetryUtil.scala:18)    at scala.util.Using$.apply(Using.scala:296)    at com.mendix.modules.opentelemetry.OpenTelemetryUtil$.com$mendix$modules$opentelemetry$OpenTelemetryUtil$$usingSpanWithCustomStatus(OpenTelemetryUtil.scala:17)    at com.mendix.modules.opentelemetry.OpenTelemetryUtil$OpenTelemetryServiceUtil.usingSpanWithCustomStatus(OpenTelemetryUtil.scala:41)    at com.mendix.modules.opentelemetry.OpenTelemetryUtil$OpenTelemetryServiceUtil.withSpanWithCustomStatus(OpenTelemetryUtil.scala:33)    at com.mendix.modules.opentelemetry.OpenTelemetryUtil$OpenTelemetryServiceUtil.withSpan(OpenTelemetryUtil.scala:36)    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.scala:110)    at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:63)    at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71)    at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:48)    at com.mendix.core.actionmanagement.internal.InternalCoreAction.call(InternalCoreAction.java:66)    at com.mendix.basis.actionmanagement.ActionManager.$anonfun$executeSync$2(ActionManager.scala:114)    at com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:20)    at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:114)    at com.mendix.basis.component.ExecutionCore.doExecuteSync(ExecutionCore.scala:149)    at com.mendix.basis.component.ExecutionCore.doExecuteSync$(ExecutionCore.scala:148)    at com.mendix.basis.component.InternalCore.doExecuteSync(InternalCore.scala:22)    at com.mendix.basis.component.ExecutionCore.executeSync(ExecutionCore.scala:98)    at com.mendix.basis.component.ExecutionCore.executeSync$(ExecutionCore.scala:95)    at com.mendix.basis.component.InternalCore.executeSync(InternalCore.scala:22)    at com.mendix.modules.microflowengine.MicroflowExecuter$.executeSync(MicroflowExecuter.scala:19)    at com.mendix.modules.microflowengine.actions.SubMicroflowAction.execute(SubMicroflowAction.scala:36)    at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.$anonfun$execute$1(MicroflowObject.scala:29)    at scala.Option.flatMap(Option.scala:283)    at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.scala:26)    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.scala:199)    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeMicroflow(MicroflowImpl.scala:132)    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.$anonfun$executeAction$1(MicroflowImpl.scala:112)    at com.mendix.modules.opentelemetry.OpenTelemetryUtil$OpenTelemetryServiceUtil.$anonfun$withSpan$2(OpenTelemetryUtil.scala:36)    at com.mendix.modules.opentelemetry.OpenTelemetryUtil$.$anonfun$usingSpanWithCustomStatus$2(OpenTelemetryUtil.scala:18)    at scala.util.Using$.apply(Using.scala:296)    at com.mendix.modules.opentelemetry.OpenTelemetryUtil$.com$mendix$modules$opentelemetry$OpenTelemetryUtil$$usingSpanWithCustomStatus(OpenTelemetryUtil.scala:17)    at com.mendix.modules.opentelemetry.OpenTelemetryUtil$OpenTelemetryServiceUtil.usingSpanWithCustomStatus(OpenTelemetryUtil.scala:41)    at com.mendix.modules.opentelemetry.OpenTelemetryUtil$OpenTelemetryServiceUtil.withSpanWithCustomStatus(OpenTelemetryUtil.scala:33)    at com.mendix.modules.opentelemetry.OpenTelemetryUtil$OpenTelemetryServiceUtil.withSpan(OpenTelemetryUtil.scala:36)    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.scala:110)    at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:63)    at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71)    at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:48)    at com.mendix.core.actionmanagement.internal.InternalCoreAction.call(InternalCoreAction.java:66)    at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.$anonfun$runMonitoredAction$1(CoreActionHandlerImpl.scala:59)    at com.mendix.basis.actionmanagement.ActionMonitoring$.$anonfun$monitor$1(ActionMonitoring.scala:52)    at com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:20)    at com.mendix.basis.actionmanagement.ActionMonitoring$.monitor(ActionMonitoring.scala:52)    at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.runMonitoredAction(CoreActionHandlerImpl.scala:59)    at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:46)    at com.mendix.core.actionmanagement.internal.InternalCoreAction.call(InternalCoreAction.java:66)    at com.mendix.basis.actionmanagement.ActionManager.$anonfun$executeSync$2(ActionManager.scala:114)    at com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:20)    at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:114)    at com.mendix.basis.actionmanagement.MicroflowCallBuilderImpl.execute(MicroflowCallBuilderImpl.scala:63)    at com.mendix.modules.queue.MicroflowTask.$anonfun$execute$1(MicroflowTask.scala:34)    at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.scala:18)    at scala.util.Try$.apply(Try.scala:217)    at com.mendix.modules.queue.MicroflowTask.execute(MicroflowTask.scala:31)    at com.mendix.modules.queue.TaskDispatcher.executeTask(TaskDispatcher.scala:255)    at com.mendix.modules.queue.TaskDispatcher.$anonfun$dispatchTask$3(TaskDispatcher.scala:226)    at com.mendix.modules.queue.MendixTaskQueueMetrics$QueueBasedMetricsImpl.$anonfun$timeTaskExecution$1(TaskQueueMetrics.scala:44)    at io.micrometer.core.instrument.composite.CompositeTimer.record(CompositeTimer.java:69)    at com.mendix.metrics.micrometer.MicrometerTimer.record(MicrometerTimer.scala:29)    at com.mendix.modules.queue.MendixTaskQueueMetrics$QueueBasedMetricsImpl.timeTaskExecution(TaskQueueMetrics.scala:44)    at com.mendix.modules.queue.TaskDispatcher.$anonfun$dispatchTask$2(TaskDispatcher.scala:226)    at com.mendix.modules.opentelemetry.OpenTelemetryUtil$.$anonfun$usingSpanWithCustomStatus$2(OpenTelemetryUtil.scala:18)    at scala.util.Using$.apply(Using.scala:296)    at com.mendix.modules.opentelemetry.OpenTelemetryUtil$.com$mendix$modules$opentelemetry$OpenTelemetryUtil$$usingSpanWithCustomStatus(OpenTelemetryUtil.scala:17)    at com.mendix.modules.opentelemetry.OpenTelemetryUtil$OpenTelemetryServiceUtil.usingSpanWithCustomStatus(OpenTelemetryUtil.scala:41)    at com.mendix.modules.opentelemetry.OpenTelemetryUtil$OpenTelemetryServiceUtil.withSpanWithCustomStatus(OpenTelemetryUtil.scala:33)    at com.mendix.modules.queue.TaskDispatcher.$anonfun$dispatchTask$1(TaskDispatcher.scala:213)    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)    at java.base/java.lang.Thread.run(Thread.java:829)   could some one please help me with this?    Note: If i execute the taskqueues microflow manually from a page, it is wroking fine and all taskqueues executing successfully even though it took 4 hrs
asked
2 answers
0

Hello Thmanampudi,

 

Did you get a runtime issue at the same time? this log message means that the the task queue stopped for some reason, is there a log message that shows "Shutting down the runtime" or "Stopping Scheduled Events" ?

noting that "Interrupted by admin" means runtime stopped your scheduled event.

answered
0

Hello Thmanampudi,

 

Do you see any anomalies in the statistics of your application, high cpu usage or other kind of outliers.

 

Hope this helps,

 

Good luck!

answered