<?php
namespace App\Cron\Job\Utils;

/**
 * Log running cronjob
 *  - should update the DB at 0.5s
 *  - might allow parallel running (default is still disabled)
 *  - maxLoad is loaded from \App\Config\ServerLoadLimits
 * @author Lucian Sirbu
 */
abstract class ShortRunningCronJobAbstract extends GeneralAbstract
{
	public function __construct()
	{
		parent::__construct();

		$this->options['dbUpdateInterval'] = 		0.5;
		$this->options['allowMultipleInstances'] = 	false;
		$this->options['cronPriority'] = 			'medium';
		$this->options['maxLoad'] = 				(Float)\App\Config\ServerLoadLimits::getInstance()->get('overload');
	}
}
