ActionScheduler_Abstract_QueueRunner
Abstract class with common Queue Cleaner functionality.
Description Description
Source Source
File: packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php
Methods Methods
- __construct — ActionScheduler_Abstract_QueueRunner constructor.
- batch_limits_exceeded — 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.
- get_allowed_concurrent_batches — Get the number of concurrent batches a runner allows.
- get_execution_time — Get the number of seconds the process has been running.
- get_memory_limit — Get memory limit
- get_time_limit — Get the maximum number of seconds a batch can run for.
- has_maximum_concurrent_batches — Check if the number of allowed concurrent batches is met or exceeded.
- memory_exceeded — Memory exceeded
- process_action — Process an individual action.
- run — Process actions in the queue.
- run_cleanup — Run the queue cleaner.
- schedule_next_instance — Schedule the next instance of the action if necessary.
- time_likely_to_be_exceeded — Check if the host's max execution time is (likely) to be exceeded if processing more actions.