Define your own busy handler which does whatever you want: <https://sqlite.org/c3ref/busy_handler.html> You can, of course, copy the default one and modify it for your own purposes. However, along with Ivan, I suspect something weird is going on if a pause of 24 days is not enough for your purposes. It might be to your advantage to tell us what you're really trying to do.