How to kill background task

I want to kill Python Console which is "Connecting".  There is no "x" in the Background Tasks window.  How do I kill it?
Official comment

I closed this thread for comments, as the initial issue ( "cancel" button for the 'Connecting to console" process) should be discussed in the appropriate bug request:

Other similar problems should be discussed separately. 

5 years later this is still relevant


Ditto!  I've had a SAM build stuck for 3 hours.  I was wondering why my machine was running a little bit choppy!

I even killed the process behind it, but it's still hanging out.




IntelliJ IDEA 2019.2 (Ultimate Edition)
Build #IU-192.5728.98, built on July 23, 2019
Runtime version: 11.0.3+12-b304.10 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 5.3.0-40-generic


Hi, 2 years later I guess it's still an issue.  I had a VM crashed out but a DB connection to it in DataGrip 2022.1.1.  The background auto sync started and I hit the X to stop it but it got stuck stopping.  When I exit DataGrip says there are background tasks running, exit to stop them.  It would be nifty if there was a 'force kill' somewhere which I'm sure the exit automatically does.


There are several different problems mixed here. 

1. There is no "cancel" button for the 'Connecting to console" process.

We are investigating that in the scope of bug request. Please follow it for updates. 

2. "SAM build" cannot be stopped.

This is part of the AWS ToolKit functionality and this question should be raised in their bug tracker:

3. Database auto-sync could not be stopped. 

In this case, there is an action to stop the background process, but a "force stop" action is needed. This feature is not yet implemented. Please describe your use case at


Please sign in to leave a comment.