10up / WP-Minions

ARCHIVED: Job Queue for WordPress
GNU General Public License v2.0
230 stars 40 forks source link

PHPUNIT_RUNNER not defined #50

Closed nothingatalldotnet closed 3 years ago

nothingatalldotnet commented 3 years ago

In wp-minions.php the plugins_loaded action is stuck in a loop where PHPUNIT_RUNNER is never defined. When tailing supervisorctl I the wp_async_task_init gets called as does \WpMinions\Plugin::get_instance(); but then simply continues looping back to the plugins_loaded function.

add_action( 'plugins_loaded', function() {
    // Init
    if ( ! defined( 'PHPUNIT_RUNNER' ) ) {
        wp_async_task_init();
    }
}, 9 );

System Info

nothingatalldotnet commented 3 years ago

Actually, this is not a bug I do not believe. Apologies