You can change the async_job DB record to error or similar, but that will most likely not stop the task.
We've done this in the past, but only when a job was stuck forever due to incorrect error handling and not when it was still running. Is there nothing in the API to stop a running task? ________________________________ From: li jerry <div...@hotmail.com> Sent: 06 August 2019 15:49 To: users@cloudstack.apache.org <users@cloudstack.apache.org> Subject: 答复: Cancel the async task in execution Restarting all mgmt has a big impact. If you can directly modify async_job to let the task abort, this will be very good. 发件人: Andrija Panic<mailto:andrija.pa...@gmail.com> 发送时间: 2019年8月6日 19:29 收件人: users<mailto:users@cloudstack.apache.org> 主题: Re: Cancel the async task in execution An aggressive way is to restart all mgmt servers - all async jobs will be cleared our / fail - but there is also a way to wipe from async_job table or similar, but I can't remember that from top of my head now... On Tue, 6 Aug 2019 at 12:03, li jerry <div...@hotmail.com> wrote: > Hello all > > Is there an asynchronous task already in progress, is there any way to > stop it and cancel it? (Can I change the database?) > > Scenes: > Volume migrates across the pool. Due to the large volume capacity, offline > migration takes a long, long, and long time, so it needs to be cancelled. > -- Andrija Panić