Error upgrading database in WP: "Queue runner must be configured before execution
I saw a solution for this problem on a Drupal platform and decided to try it: you need to delete all the entries in the civicrm_cache table in your Wordpress database using phpmyadmin before you try and upgrade the database. This resolved the issue for me. Civi version 5.27.4