In my application I delete tenants dynamically inside a rabbit listener.
I have posted a topic before here: Register/delete tenant after startup of the application
Even though I am removing the tenant async executor and I can see it at my logs (stopped async job due acquisition for engine bpmn), it seems that some threads are still trying to acquire jobs after that and they are failing because the hirari connection is closed
"exception for engine bpmn during async job acquisition: \\n### Error querying database. Cause: org.postgresql.util.PSQLException: ERROR: relation \\\"act_ru_job\\\" does not exist\\n Position: 30\\n### The error may exist in org/flowable/job/service/db/mapping/entity/Job.xml\\n### The error may involve org.flowable.job.service.impl.persistence.entity.JobEntityImpl.selectJobsToExecute-Inline\\n### The error occurred while setting parameters\\n### SQL: SELECT RES.* from ACT_RU_JOB RES WHERE SCOPE_TYPE_ is null and LOCK_EXP_TIME_ is null order by RES.ID_ asc LIMIT ? OFFSET ?\\n### Cause: org.postgresql.util.PSQLException: ERROR: relation \\\"act_ru_job\\\" does not exist\\n Position:
Do I need to delete the jobs manually before? I’ve noticed that removeTenantAsyncExecutor stop runnables so I thought that this wasn’t necessary.