approval workflow gets stuck at the stage "create user approval task"
Affected module UI
Describe the bug After adding new term in the glossary, the approval workflow gets stuck at the stage "create user approval task". Even after 17 hours, it is still in the stage of creating a task.
To Reproduce
Expected behavior Creating task for user approval in the end of the workflow
Version: 1.11.6
Additional context We have another issue with workflow approval (doesn't start at all) on prod stand, this is the dev stand. OMD versions are the same
Hello @yuridevyatyy The card shows the name of the process we have for the Workflow. Can you check the GlossaryTerm activity feed, it should already have created a task for you to approve, Please check and let me know
The activity feed only has a term creation event.
Hi @mikhail-fedotovsky Is this happening only for this term or for all the terms in this glossary? Can you please check the workflow history API in the Network tab, and share me the response here for this particular API host: api/v1/governance/workflowInstanceStates/GlossaryTermApprovalWorkflow ?
This happens in all glossaries and terms Result of the request api/v1/governance/workflowInstanceStates/GlossaryTermApprovalWorkflow/a28d7862-e5e8-49d6-a285-622fb2d11bca
{
"data": [
{
"id": "d179cbf2-e41e-4db3-8cd4-0301e04634d7",
"workflowInstanceId": "a28d7862-e5e8-49d6-a285-622fb2d11bca",
"workflowInstanceExecutionId": "a8c3b5da-ad3b-4491-8b45-f6bdd0fecaf4",
"workflowDefinitionId": "37faa073-39d2-4030-855f-1fead9bb5830",
"stage": {
"name": "ApproveGlossaryTerm",
"displayName": "Create User Approval Task",
"startedAt": 1771938485801,
"endedAt": 1771938486822,
"tasks": [],
"variables": {
"hasAssignees": true,
"global_exception": "org.jdbi.v3.core.statement.UnableToExecuteStatementException: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry '29' for key 'task_sequence.PRIMARY' [statement:\"/* FeedDAO.updateTaskId */ UPDATE task_sequence SET id=LAST_INSERT_ID(id+1)\", arguments:{positional:{}, named:{}, finder:[]}]\n\tat org.jdbi.v3.core.statement.SqlStatement.internalExecute(SqlStatement.java:1789)\n\tat org.jdbi.v3.core.result.ResultProducers.lambda$returningUpdateCount$0(ResultProducers.java:48)\n\tat org.jdbi.v3.core.statement.Update.execute(Update.java:69)\n\tat org.jdbi.v3.core.statement.Update.execute(Update.java:57)\n\tat org.jdbi.v3.sqlobject.statement.internal.SqlUpdateHandler.lambda$configureReturner$2(SqlUpdateHandler.java:91)\n\tat org.jdbi.v3.sqlobject.statement.internal.CustomizingStatementHandler.invoke(CustomizingStatementHandler.java:196)\n\tat org.jdbi.v3.sqlobject.statement.internal.SqlUpdateHandler.invoke(SqlUpdateHandler.java:32)\n\tat org.jdbi.v3.sqlobject.internal.SqlObjectInitData$1.lambda$invoke$0(SqlObjectInitData.java:135)\n\tat org.jdbi.v3.core.ConstantHandleSupplier.invokeInContext(ConstantHandleSupplier.java:64)\n\tat org.jdbi.v3.sqlobject.internal.SqlObjectInitData$1.call(SqlObjectInitData.java:141)\n\tat org.jdbi.v3.sqlobject.internal.SqlObjectInitData$1.invoke(SqlObjectInitData.java:135)\n\tat org.jdbi.v3.sqlobject.SqlObjectFactory.lambda$attach$2(SqlObjectFactory.java:108)\n\tat jdk.proxy2/jdk.proxy2.$Proxy275.updateTaskId(Unknown Source)\n\tat org.openmetadata.service.jdbi3.FeedRepository.lambda$getNextTaskId$0(FeedRepository.java:157)\n\tat org.jdbi.v3.core.transaction.LocalTransactionHandler$BoundLocalTransactionHandler.inTransaction(LocalTransactionHandler.java:208)\n\tat org.jdbi.v3.core.Handle.inTransaction(Handle.java:725)\n\tat org.jdbi.v3.core.Jdbi.lambda$inTransaction$5(Jdbi.java:401)\n\tat org.jdbi.v3.core.Jdbi.withHandle(Jdbi.java:367)\n\tat org.jdbi.v3.core.Jdbi.inTransaction(Jdbi.java:401)\n\tat org.openmetadata.service.jdbi3.FeedRepository.getNextTaskId(FeedRepository.java:154)\n\tat org.openmetadata.service.jdbi3.FeedRepository.createThread(FeedRepository.java:470)\n\tat org.openmetadata.service.jdbi3.FeedRepository.create(FeedRepository.java:368)\n\tat org.openmetadata.service.governance.workflows.elements.nodes.userTask.impl.CreateApprovalTaskImpl.createApprovalTask(CreateApprovalTaskImpl.java:154)\n\tat org.openmetadata.service.governance.workflows.elements.nodes.userTask.impl.CreateApprovalTaskImpl.notify(CreateApprovalTaskImpl.java:78)\n\tat org.flowable.engine.impl.delegate.invocation.TaskListenerInvocation.invoke(TaskListenerInvocation.java:35)\n\tat org.flowable.engine.impl.delegate.invocation.DelegateInvocation.proceed(DelegateInvocation.java:32)\n\tat org.flowable.engine.impl.delegate.invocation.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:26)\n\tat org.flowable.engine.impl.bpmn.helper.ClassDelegate.notify(ClassDelegate.java:129)\n\tat org.flowable.engine.impl.delegate.invocation.TaskListenerInvocation.invoke(TaskListenerInvocation.java:35)\n\tat org.flowable.engine.impl.delegate.invocation.DelegateInvocation.proceed(DelegateInvocation.java:32)\n\tat org.flowable.engine.impl.delegate.invocation.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:26)\n\tat org.flowable.engine.impl.bpmn.listener.ListenerNotificationHelper.executeTaskListeners(ListenerNotificationHelper.java:135)\n\tat org.flowable.engine.impl.bpmn.listener.ListenerNotificationHelper.executeTaskListeners(ListenerNotificationHelper.java:111)\n\tat org.flowable.engine.impl.bpmn.behavior.UserTaskActivityBehavior.execute(UserTaskActivityBehavior.java:183)\n\tat org.flowable.engine.impl.bpmn.behavior.UserTaskActivityBehavior.execute(UserTaskActivityBehavior.java:86)\n\tat org.flowable.engine.impl.agenda.ContinueProcessOperation.executeActivityBehavior(ContinueProcessOperation.java:298)\n\tat org.flowable.engine.impl.agenda.ContinueProcessOperation.executeSynchronous(ContinueProcessOperation.java:175)\n\tat org.flowable.engine.impl.agenda.ContinueProcessOperation.continueThroughFlowNode(ContinueProcessOperation.java:125)\n\tat org.flowable.engine.impl.agenda.ContinueProcessOperation.run(ContinueProcessOperation.java:88)\n\tat org.flowable.common.engine.impl.AbstractEngineConfiguration.lambda$new$0(AbstractEngineConfiguration.java:198)\n\tat org.flowable.engine.impl.interceptor.CommandInvoker.executeOperation(CommandInvoker.java:189)\n\tat org.flowable.engine.impl.interceptor.CommandInvoker.executeOperations(CommandInvoker.java:128)\n\tat org.flowable.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:80)\n\tat org.flowable.engine.impl.interceptor.BpmnOverrideContextInterceptor.execute(BpmnOverrideContextInterceptor.java:26)\n\tat org.flowable.common.engine.impl.interceptor.TransactionContextInterceptor.execute(TransactionContextInterceptor.java:53)\n\tat org.flowable.common.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:105)\n\tat org.flowable.common.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:30)\n\tat org.flowable.common.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:56)\n\tat org.flowable.common.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:51)\n\tat org.flowable.job.service.impl.asyncexecutor.ExecuteAsyncRunnable.handleTransactionalJob(ExecuteAsyncRunnable.java:177)\n\tat org.flowable.job.service.impl.asyncexecutor.ExecuteAsyncRunnable.executeJob(ExecuteAsyncRunnable.java:146)\n\tat org.flowable.job.service.impl.asyncexecutor.ExecuteAsyncRunnable.runInternally(ExecuteAsyncRunnable.java:122)\n\tat org.flowable.job.service.impl.asyncexecutor.ExecuteAsyncRunnable.run(ExecuteAsyncRunnable.java:96)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1583)\nCaused by: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry '29' for key 'task_sequence.PRIMARY'\n\tat com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:109)\n\tat com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:114)\n\tat com.mysql.cj.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:612)\n\tat com.mysql.cj.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:320)\n\tat com.mysql.cj.jdbc.ClientPreparedStatement.execute(ClientPreparedStatement.java:384)\n\tat com.zaxxer.hikari.pool.ProxyPreparedStatement.execute(ProxyPreparedStatement.java:44)\n\tat com.zaxxer.hikari.pool.HikariProxyPreparedStatement.execute(HikariProxyPreparedStatement.java)\n\tat org.jdbi.v3.core.statement.SqlLoggerUtil.wrap(SqlLoggerUtil.java:31)\n\tat org.jdbi.v3.core.statement.SqlStatement.internalExecute(SqlStatement.java:1787)\n\t... 55 more\n",
"global_updatedBy": "m.fedotovskii",
"global_relatedEntity": "<#E::glossaryTerm::тест глоссария.тест апрув 2>",
"workflowInstanceExecutionId": "a8c3b5da-ad3b-4491-8b45-f6bdd0fecaf4",
"ApproveGlossaryTerm.assignees": "[\"<#E::user::\\\"y.devyatyy\\\">\"]",
"CheckIfGlossaryTermIsNew_result": true,
"CheckGlossaryTermHasReviewers_result": true,
"ApproveGlossaryTerm_stageInstanceStateId": "d179cbf2-e41e-4db3-8cd4-0301e04634d7",
"GlossaryTermCreated_stageInstanceStateId": "4dc4b7d6-a346-428f-a6b5-b7843574662a",
"CheckGlossaryTermIsReadyToBeReviewed_result": true,
"CheckIfGlossaryTermIsNew_stageInstanceStateId": "47eeb990-2a98-48bf-9f9b-07ec8580591c",
"CheckIfGlossaryTermUpdatedByIsReviewer_result": false,
"CheckGlossaryTermHasReviewers_stageInstanceStateId": "7184fd87-2be4-4357-93c2-3af96fba6c9e",
"SetGlossaryTermStatusToInReview_stageInstanceStateId": "269a36d9-b23a-40ef-b4e7-f74504e12330",
"CheckGlossaryTermIsReadyToBeReviewed_stageInstanceStateId": "edcbea83-7350-4859-919d-60f031c5f38c",
"CheckIfGlossaryTermUpdatedByIsReviewer_stageInstanceStateId": "74a08a74-ad33-4e15-a6da-3bbd4198d7cf"
}
},
"timestamp": 1771938485811,
"status": "EXCEPTION",
"exception": "org.jdbi.v3.core.statement.UnableToExecuteStatementException: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry '29' for key 'task_sequence.PRIMARY' [statement:\"/* FeedDAO.updateTaskId */ UPDATE task_sequence SET id=LAST_INSERT_ID(id+1)\", arguments:{positional:{}, named:{}, finder:[]}]\n\tat org.jdbi.v3.core.statement.SqlStatement.internalExecute(SqlStatement.java:1789)\n\tat org.jdbi.v3.core.result.ResultProducers.lambda$returningUpdateCount$0(ResultProducers.java:48)\n\tat org.jdbi.v3.core.statement.Update.execute(Update.java:69)\n\tat org.jdbi.v3.core.statement.Update.execute(Update.java:57)\n\tat org.jdbi.v3.sqlobject.statement.internal.SqlUpdateHandler.lambda$configureReturner$2(SqlUpdateHandler.java:91)\n\tat org.jdbi.v3.sqlobject.statement.internal.CustomizingStatementHandler.invoke(CustomizingStatementHandler.java:196)\n\tat org.jdbi.v3.sqlobject.statement.internal.SqlUpdateHandler.invoke(SqlUpdateHandler.java:32)\n\tat org.jdbi.v3.sqlobject.internal.SqlObjectInitData$1.lambda$invoke$0(SqlObjectInitData.java:135)\n\tat org.jdbi.v3.core.ConstantHandleSupplier.invokeInContext(ConstantHandleSupplier.java:64)\n\tat org.jdbi.v3.sqlobject.internal.SqlObjectInitData$1.call(SqlObjectInitData.java:141)\n\tat org.jdbi.v3.sqlobject.internal.SqlObjectInitData$1.invoke(SqlObjectInitData.java:135)\n\tat org.jdbi.v3.sqlobject.SqlObjectFactory.lambda$attach$2(SqlObjectFactory.java:108)\n\tat jdk.proxy2/jdk.proxy2.$Proxy275.updateTaskId(Unknown Source)\n\tat org.openmetadata.service.jdbi3.FeedRepository.lambda$getNextTaskId$0(FeedRepository.java:157)\n\tat org.jdbi.v3.core.transaction.LocalTransactionHandler$BoundLocalTransactionHandler.inTransaction(LocalTransactionHandler.java:208)\n\tat org.jdbi.v3.core.Handle.inTransaction(Handle.java:725)\n\tat org.jdbi.v3.core.Jdbi.lambda$inTransaction$5(Jdbi.java:401)\n\tat org.jdbi.v3.core.Jdbi.withHandle(Jdbi.java:367)\n\tat org.jdbi.v3.core.Jdbi.inTransaction(Jdbi.java:401)\n\tat org.openmetadata.service.jdbi3.FeedRepository.getNextTaskId(FeedRepository.java:154)\n\tat org.openmetadata.service.jdbi3.FeedRepository.createThread(FeedRepository.java:470)\n\tat org.openmetadata.service.jdbi3.FeedRepository.create(FeedRepository.java:368)\n\tat org.openmetadata.service.governance.workflows.elements.nodes.userTask.impl.CreateApprovalTaskImpl.createApprovalTask(CreateApprovalTaskImpl.java:154)\n\tat org.openmetadata.service.governance.workflows.elements.nodes.userTask.impl.CreateApprovalTaskImpl.notify(CreateApprovalTaskImpl.java:78)\n\tat org.flowable.engine.impl.delegate.invocation.TaskListenerInvocation.invoke(TaskListenerInvocation.java:35)\n\tat org.flowable.engine.impl.delegate.invocation.DelegateInvocation.proceed(DelegateInvocation.java:32)\n\tat org.flowable.engine.impl.delegate.invocation.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:26)\n\tat org.flowable.engine.impl.bpmn.helper.ClassDelegate.notify(ClassDelegate.java:129)\n\tat org.flowable.engine.impl.delegate.invocation.TaskListenerInvocation.invoke(TaskListenerInvocation.java:35)\n\tat org.flowable.engine.impl.delegate.invocation.DelegateInvocation.proceed(DelegateInvocation.java:32)\n\tat org.flowable.engine.impl.delegate.invocation.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:26)\n\tat org.flowable.engine.impl.bpmn.listener.ListenerNotificationHelper.executeTaskListeners(ListenerNotificationHelper.java:135)\n\tat org.flowable.engine.impl.bpmn.listener.ListenerNotificationHelper.executeTaskListeners(ListenerNotificationHelper.java:111)\n\tat org.flowable.engine.impl.bpmn.behavior.UserTaskActivityBehavior.execute(UserTaskActivityBehavior.java:183)\n\tat org.flowable.engine.impl.bpmn.behavior.UserTaskActivityBehavior.execute(UserTaskActivityBehavior.java:86)\n\tat org.flowable.engine.impl.agenda.ContinueProcessOperation.executeActivityBehavior(ContinueProcessOperation.java:298)\n\tat org.flowable.engine.impl.agenda.ContinueProcessOperation.executeSynchronous(ContinueProcessOperation.java:175)\n\tat org.flowable.engine.impl.agenda.ContinueProcessOperation.continueThroughFlowNode(ContinueProcessOperation.java:125)\n\tat org.flowable.engine.impl.agenda.ContinueProcessOperation.run(ContinueProcessOperation.java:88)\n\tat org.flowable.common.engine.impl.AbstractEngineConfiguration.lambda$new$0(AbstractEngineConfiguration.java:198)\n\tat org.flowable.engine.impl.interceptor.CommandInvoker.executeOperation(CommandInvoker.java:189)\n\tat org.flowable.engine.impl.interceptor.CommandInvoker.executeOperations(CommandInvoker.java:128)\n\tat org.flowable.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:80)\n\tat org.flowable.engine.impl.interceptor.BpmnOverrideContextInterceptor.execute(BpmnOverrideContextInterceptor.java:26)\n\tat org.flowable.common.engine.impl.interceptor.TransactionContextInterceptor.execute(TransactionContextInterceptor.java:53)\n\tat org.flowable.common.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:105)\n\tat org.flowable.common.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:30)\n\tat org.flowable.common.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:56)\n\tat org.flowable.common.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:51)\n\tat org.flowable.job.service.impl.asyncexecutor.ExecuteAsyncRunnable.handleTransactionalJob(ExecuteAsyncRunnable.java:177)\n\tat org.flowable.job.service.impl.asyncexecutor.ExecuteAsyncRunnable.executeJob(ExecuteAsyncRunnable.java:146)\n\tat org.flowable.job.service.impl.asyncexecutor.ExecuteAsyncRunnable.runInternally(ExecuteAsyncRunnable.java:122)\n\tat org.flowable.job.service.impl.asyncexecutor.ExecuteAsyncRunnable.run(ExecuteAsyncRunnable.java:96)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1583)\nCaused by: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry '29' for key 'task_sequence.PRIMARY'\n\tat com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:109)\n\tat com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:114)\n\tat com.mysql.cj.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:612)\n\tat com.mysql.cj.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:320)\n\tat com.mysql.cj.jdbc.ClientPreparedStatement.execute(ClientPreparedStatement.java:384)\n\tat com.zaxxer.hikari.pool.ProxyPreparedStatement.execute(ProxyPreparedStatement.java:44)\n\tat com.zaxxer.hikari.pool.HikariProxyPreparedStatement.execute(HikariProxyPreparedStatement.java)\n\tat org.jdbi.v3.core.statement.SqlLoggerUtil.wrap(SqlLoggerUtil.java:31)\n\tat org.jdbi.v3.core.statement.SqlStatement.internalExecute(SqlStatement.java:1787)\n\t... 55 more\n"
},
{
"id": "269a36d9-b23a-40ef-b4e7-f74504e12330",
"workflowInstanceId": "a28d7862-e5e8-49d6-a285-622fb2d11bca",
"workflowInstanceExecutionId": "a8c3b5da-ad3b-4491-8b45-f6bdd0fecaf4",
"workflowDefinitionId": "37faa073-39d2-4030-855f-1fead9bb5830",
"stage": {
"name": "SetGlossaryTermStatusToInReview",
"displayName": "Set Status to 'In Review'",
"startedAt": 1771938485222,
"endedAt": 1771938485774,
"tasks": [],
"variables": {
"global_updatedBy": "m.fedotovskii",
"global_relatedEntity": "<#E::glossaryTerm::тест глоссария.тест апрув 2>",
"workflowInstanceExecutionId": "a8c3b5da-ad3b-4491-8b45-f6bdd0fecaf4",
"CheckIfGlossaryTermIsNew_result": true,
"CheckGlossaryTermHasReviewers_result": true,
"GlossaryTermCreated_stageInstanceStateId": "4dc4b7d6-a346-428f-a6b5-b7843574662a",
"CheckGlossaryTermIsReadyToBeReviewed_result": true,
"CheckIfGlossaryTermIsNew_stageInstanceStateId": "47eeb990-2a98-48bf-9f9b-07ec8580591c",
"CheckIfGlossaryTermUpdatedByIsReviewer_result": false,
"CheckGlossaryTermHasReviewers_stageInstanceStateId": "7184fd87-2be4-4357-93c2-3af96fba6c9e",
"SetGlossaryTermStatusToInReview_stageInstanceStateId": "269a36d9-b23a-40ef-b4e7-f74504e12330",
"CheckGlossaryTermIsReadyToBeReviewed_stageInstanceStateId": "edcbea83-7350-4859-919d-60f031c5f38c",
"CheckIfGlossaryTermUpdatedByIsReviewer_stageInstanceStateId": "74a08a74-ad33-4e15-a6da-3bbd4198d7cf"
}
},
"timestamp": 1771938485235,
"status": "FINISHED"
},
{
"id": "47eeb990-2a98-48bf-9f9b-07ec8580591c",
"workflowInstanceId": "a28d7862-e5e8-49d6-a285-622fb2d11bca",
"workflowInstanceExecutionId": "a8c3b5da-ad3b-4491-8b45-f6bdd0fecaf4",
"workflowDefinitionId": "37faa073-39d2-4030-855f-1fead9bb5830",
"stage": {
"name": "CheckIfGlossaryTermIsNew",
"displayName": "Check if Glossary Term is New",
"startedAt": 1771938485006,
"endedAt": 1771938485200,
"tasks": [],
"variables": {
"global_updatedBy": "m.fedotovskii",
"global_relatedEntity": "<#E::glossaryTerm::тест глоссария.тест апрув 2>",
"workflowInstanceExecutionId": "a8c3b5da-ad3b-4491-8b45-f6bdd0fecaf4",
"CheckIfGlossaryTermIsNew_result": true,
"CheckGlossaryTermHasReviewers_result": true,
"GlossaryTermCreated_stageInstanceStateId": "4dc4b7d6-a346-428f-a6b5-b7843574662a",
"CheckGlossaryTermIsReadyToBeReviewed_result": true,
"CheckIfGlossaryTermIsNew_stageInstanceStateId": "47eeb990-2a98-48bf-9f9b-07ec8580591c",
"CheckIfGlossaryTermUpdatedByIsReviewer_result": false,
"CheckGlossaryTermHasReviewers_stageInstanceStateId": "7184fd87-2be4-4357-93c2-3af96fba6c9e",
"CheckGlossaryTermIsReadyToBeReviewed_stageInstanceStateId": "edcbea83-7350-4859-919d-60f031c5f38c",
"CheckIfGlossaryTermUpdatedByIsReviewer_stageInstanceStateId": "74a08a74-ad33-4e15-a6da-3bbd4198d7cf"
}
},
"timestamp": 1771938485017,
"status": "FINISHED"
},
{
"id": "edcbea83-7350-4859-919d-60f031c5f38c",
"workflowInstanceId": "a28d7862-e5e8-49d6-a285-622fb2d11bca",
"workflowInstanceExecutionId": "a8c3b5da-ad3b-4491-8b45-f6bdd0fecaf4",
"workflowDefinitionId": "37faa073-39d2-4030-855f-1fead9bb5830",
"stage": {
"name": "CheckGlossaryTermIsReadyToBeReviewed",
"displayName": "Check if Glossary Term is Ready to be Reviewed",
"startedAt": 1771938484770,
"endedAt": 1771938484975,
"tasks": [],
"variables": {
"global_updatedBy": "m.fedotovskii",
"global_relatedEntity": "<#E::glossaryTerm::тест глоссария.тест апрув 2>",
"workflowInstanceExecutionId": "a8c3b5da-ad3b-4491-8b45-f6bdd0fecaf4",
"CheckGlossaryTermHasReviewers_result": true,
"GlossaryTermCreated_stageInstanceStateId": "4dc4b7d6-a346-428f-a6b5-b7843574662a",
"CheckGlossaryTermIsReadyToBeReviewed_result": true,
"CheckIfGlossaryTermUpdatedByIsReviewer_result": false,
"CheckGlossaryTermHasReviewers_stageInstanceStateId": "7184fd87-2be4-4357-93c2-3af96fba6c9e",
"CheckGlossaryTermIsReadyToBeReviewed_stageInstanceStateId": "edcbea83-7350-4859-919d-60f031c5f38c",
"CheckIfGlossaryTermUpdatedByIsReviewer_stageInstanceStateId": "74a08a74-ad33-4e15-a6da-3bbd4198d7cf"
}
},
"timestamp": 1771938484780,
"status": "FINISHED"
},
{
"id": "74a08a74-ad33-4e15-a6da-3bbd4198d7cf",
"workflowInstanceId": "a28d7862-e5e8-49d6-a285-622fb2d11bca",
"workflowInstanceExecutionId": "a8c3b5da-ad3b-4491-8b45-f6bdd0fecaf4",
"workflowDefinitionId": "37faa073-39d2-4030-855f-1fead9bb5830",
"stage": {
"name": "CheckIfGlossaryTermUpdatedByIsReviewer",
"displayName": "Check if Glossary Term Updated By is Reviewer",
"startedAt": 1771938484540,
"endedAt": 1771938484746,
"tasks": [],
"variables": {
"global_updatedBy": "m.fedotovskii",
"global_relatedEntity": "<#E::glossaryTerm::тест глоссария.тест апрув 2>",
"workflowInstanceExecutionId": "a8c3b5da-ad3b-4491-8b45-f6bdd0fecaf4",
"CheckGlossaryTermHasReviewers_result": true,
"GlossaryTermCreated_stageInstanceStateId": "4dc4b7d6-a346-428f-a6b5-b7843574662a",
"CheckIfGlossaryTermUpdatedByIsReviewer_result": false,
"CheckGlossaryTermHasReviewers_stageInstanceStateId": "7184fd87-2be4-4357-93c2-3af96fba6c9e",
"CheckIfGlossaryTermUpdatedByIsReviewer_stageInstanceStateId": "74a08a74-ad33-4e15-a6da-3bbd4198d7cf"
}
},
"timestamp": 1771938484550,
"status": "FINISHED"
},
{
"id": "7184fd87-2be4-4357-93c2-3af96fba6c9e",
"workflowInstanceId": "a28d7862-e5e8-49d6-a285-622fb2d11bca",
"workflowInstanceExecutionId": "a8c3b5da-ad3b-4491-8b45-f6bdd0fecaf4",
"workflowDefinitionId": "37faa073-39d2-4030-855f-1fead9bb5830",
"stage": {
"name": "CheckGlossaryTermHasReviewers",
"displayName": "Check if Glossary Term has Reviewers",
"startedAt": 1771938484324,
"endedAt": 1771938484512,
"tasks": [],
"variables": {
"global_updatedBy": "m.fedotovskii",
"global_relatedEntity": "<#E::glossaryTerm::тест глоссария.тест апрув 2>",
"workflowInstanceExecutionId": "a8c3b5da-ad3b-4491-8b45-f6bdd0fecaf4",
"CheckGlossaryTermHasReviewers_result": true,
"GlossaryTermCreated_stageInstanceStateId": "4dc4b7d6-a346-428f-a6b5-b7843574662a",
"CheckGlossaryTermHasReviewers_stageInstanceStateId": "7184fd87-2be4-4357-93c2-3af96fba6c9e"
}
},
"timestamp": 1771938484335,
"status": "FINISHED"
},
{
"id": "4dc4b7d6-a346-428f-a6b5-b7843574662a",
"workflowInstanceId": "a28d7862-e5e8-49d6-a285-622fb2d11bca",
"workflowInstanceExecutionId": "a8c3b5da-ad3b-4491-8b45-f6bdd0fecaf4",
"workflowDefinitionId": "37faa073-39d2-4030-855f-1fead9bb5830",
"stage": {
"name": "GlossaryTermCreated",
"displayName": "Glossary Term Created or Updated",
"startedAt": 1771938484238,
"endedAt": 1771938484288,
"tasks": [],
"variables": {
"global_updatedBy": "m.fedotovskii",
"global_relatedEntity": "<#E::glossaryTerm::тест глоссария.тест апрув 2>",
"workflowInstanceExecutionId": "a8c3b5da-ad3b-4491-8b45-f6bdd0fecaf4",
"GlossaryTermCreated_stageInstanceStateId": "4dc4b7d6-a346-428f-a6b5-b7843574662a"
}
},
"timestamp": 1771938484248,
"status": "FINISHED"
}
],
"paging": {
"total": 7
}
}
Hey @mikhail-fedotovsky Got it, Looks like a race condition creating parallel tasks, can you please share the sequence of operations that lead to this issue.
cc @IceS2 Duplicate Task Creation noted here
Also @mikhail-fedotovsky Can you please share me the response of this db query?
select * from task_sequence;
Also is this mysql or postgres db for OpenMetadata?
We will try to unblock you with manual queries
The sequence is standard:
- Creating a term using a button.
- Filling out the description.
- We usually don’t specify reviewers . We use the inheritance from the Glossary, but the error occurs in both options.
DB is MySQL 8. Result of query:
id
28
29
@mikhail-fedotovsky Please take a backup of the db or at least the table and delete the id 29
delete from task_sequence where id=29;
Let us know how it goes
Yes, it helped. When a old term description is updated, a approval task is created
@mikhail-fedotovsky Great, would it be possible for you to check the task number 28 and tell us when was it created to have an idea on the release
Fixed for the user