Cancel a long running microflow

I have a use case where a POST API request can take up to 60 minutes to return a response or have it timeout. We want to have a button on the screen that can cancel this long-running microflow after it has been started.    I understand that I can implement the task queue module to set up a queuing system to control the number of parallel microflows. However, is it possible to cancel the microflow to prevent the system from having these microflows that are waiting for a response? Also, what are the risks of having these microflows that are in this state?    I know in this forum post – some experts have talked about this being very difficult –    Any suggestions would be greatly appreciated. Perhaps this should be an additional endpoint that we build for the API which can cancel the API call that has not returned the results to Mendix yet.
0 answers