Cancelling a background process

In the architect, I start a process in the background using the RunBackgroundProcess plugin. Is there a way cancel this background process when for example the user presses a button?

I think you are looking for a specific way to cancel the background process in the UI or other process component. However, maybe this url query + web.config setting can help you a little bit:

Command Options Usage
?showrunningrequests yes New in 3.8! This will show the running requests in a list so you can see what is taking so long or what is going on. This needs to be set up in the web.config to authorize usage. Only available after logon.
?runningrequestsaction kill- After checking for running processes, this can be used to kill a particular big command to avoid slowing or crashing your application or server. Also used to stop a process that imports/exports data or mails contacts. Be aware of data loss and processes that have not completed; always check data validity afterwards.
?runningrequestsauthorization This must be set up in the web.config. Since killing a process is delicate and can influence data integrity, only authorized users can run this command.

I got this info from KB1340. The authorization string matches ‘KendoPresentationLayer.RunningRequestHandler.SecretAuthorizationKey’ web.config appsetting

This sounds like it’s not the way to go. Using an parameter. My opinion is that this must be incorporated in the architect it self. There is even an identifier as return param in the runBackGroundProcess plugin.

I have made an SR with a request for this functionality.