public function config()
{
$config = parent::config();
if ($config->daemon) {
//Report a warning to log
trigger_error(sprintf("Demonized mode is not allowed for '%s' job.", $this->name), E_USER_WARNING);
//Forces normal mode
$config->daemon = false;
}
return $config;
}