operations = serialize($operations); } public function onRun(){ $operations = unserialize($this->operations); $results = []; foreach($operations as $op){ try{ $results[] = Utils::simpleCurl($op["page"], $op["timeout"] ?? 10, $op["extraHeaders"] ?? [], $op["extraOpts"] ?? []); }catch(\RuntimeException $e){ $results[] = $e; } } $this->setResult($results); } }