toArray()); $options['process'] = Provider::where('id', $options['provider_id'])->value('name'); if ($proxy) { $options['proxy'] = 'https://prox2.nuhodds.com/proxy.php'; } if ($options['sleep'] > 0) { if (! $debug) { sleep($options['sleep']); } else { Notice::note('without debug process sleeps for '.$options['sleep'].'sec', 'g'); } } } else { Notice::note('unknown supervisor: '.self::$code, 'r', 1); } } public static function end($options) { $processend = microtime(true); $runtime = round(($processend - self::$starttime) / 60, 3); Supervisor::where('id', self::$code)->update(['runtime' => $runtime]); if ($options['d']) { Notice::note('spervisor time: '.$runtime.' min', 'g'); } } }