action_scheduler_memory_exceeded

action_scheduler_memory_exceeded

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.7.1

apply_filters('action_scheduler_memory_exceeded') is found 1 times:

  • /packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php line 359
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
        $memory_limit    = $this->get_memory_limit() * 0.90;
        $current_memory  = memory_get_usage( true );
        $memory_exceeded = $current_memory >= $memory_limit;
     
        return apply_filters( 'action_scheduler_memory_exceeded', $memory_exceeded, $this );
    }
     
    /**
     * See if the batch limits have been exceeded, which is when memory usage is almost at
     * the maximum limit, or the time to process more actions will exceed the max time limit.
     *