| Server IP : 172.67.134.116 / Your IP : 216.73.217.68 Web Server : Apache System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64 User : nobi37te ( 1003) PHP Version : 8.2.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/nobi37te/www/wp-content/plugins/facebook-for-woocommerce/includes/Jobs/ |
Upload File : |
<?php
namespace WooCommerce\Facebook\Jobs;
use Automattic\WooCommerce\ActionSchedulerJobFramework\AbstractChainedJob as FrameworkAbstractChainedJob;
use Exception;
defined( 'ABSPATH' ) || exit;
/**
* Class AbstractChainedJob
*
* @since 2.5.0
*/
abstract class AbstractChainedJob extends FrameworkAbstractChainedJob {
/**
* Handle processing a chain batch.
*
* @hooked {plugin_name}/jobs/{job_name}/chain_batch
*
* @param int $batch_number The batch number for the new batch.
* @param array $args The args for the job.
*
* @throws Exception On error. The failure will be logged by Action Scheduler and the job chain will stop.
*/
public function handle_batch_action( int $batch_number, array $args ) {
// Use the profile logger to log the usage of each job batch
$logger = facebook_for_woocommerce()->get_profiling_logger();
$process_name = $this->get_name() . '_job';
$logger->start( $process_name );
parent::handle_batch_action( $batch_number, $args );
$logger->stop( $process_name );
}
}