PyCharm 2023.3 Help

Background tasks

When lengthy tasks are running, for example, search and replace, VCS update, and so on, PyCharm displays the progress bar. You can bring execution of such tasks to the background by clicking the Background button.

Background tasks

However, when a task of a certain type is brought to the background, you can still view its progress.

To view tasks running in the background, do one of the following

  • View the Status bar:

    a task running in background
  • In the Status bar, click Background tasks.

  • In the main menu, go to Window | Background Tasks | Show.

    Show backrgound tasks

As a result, the Background Tasks manager opens, showing all the tasks that are currently running in the background. You can review their progress, and if necessary, cancel the unnecessary tasks by clicking Stop the task.

A task running in background

When the Auto Show command is checked in Window | Background Tasks, the Background Tasks manager opens automatically every time a task is launched in the background.

Sometimes, when PyCharm cannot predict the end time of a background task, the Cancel button is not available. In the most cases, this happens when indexing or running project interpreter tasks. As a workaround, you can try to set another interpreter for the project.

Last modified: 07 March 2024