Skip to content

Backup dialog interferring with add-on's QueryOp #4613

@abdnh

Description

@abdnh

Hi. I’m writing an add-on that generates audio files and uses an external Python script. Since Anki creates a new backup every 5 minutes and opens a modal window (“Creating backup”), the add-on window completely loses focus, making it impossible to cancel the queue even if I want to. And the best part is that the backup window just stays there indefinitely.
I’m curious if there’s a way to pause backups while the add-on is running.
2026-03-14_00-041920×1080 592 KB

Originally reported on https://forums.ankiweb.net/t/pause-disable-backups-during-background-tasks/69151

The backup task is also run in a QueryOp with collection_executor. The task doesn't start until all scheduled tasks are done (due to max_workers=1), but progress.start() is called immediately before the task is scheduled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions