detect attempt to hot re-run application

0
Hi. We need a poller microflow in our app that runs infinitely, but it prevents hot re-run:   Core: Updating application model... ActionManager: Cannot update the application model because some actions are still running. Waiting 5 seconds for them to finish. M2EE: Failed to reload model Core: Mendix Runtime is shutting down now... How to detect such attempts so we can temporarily stop our microflow? Otherwise it impairs app development.
asked
2 answers
0

Have you tried moving the parts of your poller microflow that make changes into a Task Queue? So for each update, you make the change in a sub-microflow that you flag as running in the Task Queue. That would move the changes into a new transaction and hopefully allow other parts of your application to also make changes and keep running.

 

https://docs.mendix.com/refguide/task-queue/#queuing

 

Good luck!

answered
0

Maybe create a before shutdown flow where you set a boolean or something that stops the poller flow. Reset the boolean in the after startup. Or use a scheduled event instead of an infinite process for your polling?

answered