Run the given process.

@param  \Symfony\Component\Process\Process  $process
@param  int  $memory
@return void
557196
public function runProcess(Process $process, $memory)
	{
		$process->run();

		// Once we have run the job we'll go check if the memory limit has been
		// exceeded for the script. If it has, we will kill this script so a
		// process managers will restart this with a clean slate of memory.
		if ($this->memoryExceeded($memory))
		{
			$this->stop(); return;
		}
	}
609844
public function run()
    {
        $this->loadAllModules();
        $this->runAllCoreModules();
        $this->runAllAppModules();
        
        $this->runStatus = true;
    }
901870
public function run()
    {
        $this->call(__NAMESPACE__.'\\OptionsTableSeeder');
        $this->call(__NAMESPACE__.'\\RolesTableSeeder');
        $this->call(__NAMESPACE__.'\\PermissionsTableSeeder');
        $this->call(__NAMESPACE__.'\\UsersTableSeeder');
        $this->call(__NAMESPACE__.'\\CategoriesTableSeeder');
    }
42021
public function run(Storage $storage)
    {
        parent::run($storage);
        $this->checkParameters();
        $this->checkRequiredParameters();
        $this->setFormId();
        $this->initialize($storage);
        $this->checkSubmit($storage);
    }
429139
public function doProcess()
	{

		// card errors
		$rc = $this->doProcessCards();
		if ($rc !== '00') {
			$this->payment->rc = $rc;
			$this->payment->rrn = '';
			$this->payment->irn = '';
			$this->payment->status = Status::ERROR;
			$this->payment->save();

			return;
		}

		// process type errors
		$rc = $this->doProcessType();
		if ($rc !== '00') {
			$this->payment->rc = $rc;
			$this->payment->status = Status::ERROR;
			$this->payment->save();

			return;
		}

		// auth
		$this->doDetectAuth();

		// approved
		if($this->payment->status != Status::AUTHORIZATION){
			$this->payment->status = Status::SUCCESS;
		}
		$this->payment->rc = '00';
		$this->payment->approval = mt_rand(100000, 999999);
		$this->payment->save();

	}
1313628
public function run(Storage $storage)
    {
        parent::run($storage);

        $this->checkParameters();
        $this->parameters[$this->documentFolderParameterName] = $this->storage->getDocuments()->getDocumentFolderBySlug($this->documentFolderPath);
    }
677276
public function process()
    {
        parent::process();

        $cmd = $this->compile();
        $this->runCmd(
            $cmd,
            '\Thapp\JitImage\Exception\ImageProcessException',
            function ($stderr) {
                $this->clean();
            },
            ['#', PHP_EOL]
        );
    }
1203753
public function run()
        {
            $configs = $this->configs;
            $params = $this->params;
            foreach ($configs as $name => $value) {
                if ($value === '*') {
                    continue;
                }
                if (isset($params[$name])) {
                    $param = $params[$name];
                    if (is_array($value)) {
                        $check = $this->arrayValueChecker($param, $value);
                    } elseif (is_string($value)) {
                        $check = $this->stringValueChecker($param, $value);
                    }
                    if (false === $check) {
                        break;
                    }
                } else {
                    continue;
                }
            }
            if (false === $check) {
                $this->stopPageProcess();
            }
        }
986220
public function save(Process $process, array $item)
    {
        $this->initiateMemoryProcess($process);
        $this->memory[$process->getId()][] = json_encode($item);
    }
1200575
public function run()
	{
		$this->permissionsUserSeeder();
        $this->permissionsRoleSeeder();
        $this->permissionsSeeder();
        $this->permissionsAllSeeder();
        $this->rolesSeeder();
        $this->addPermissionRoleSeeder();
		$this->usersSeeder();
		$this->roleUserSeeder();
	}
51455
public function execute()
    {
        $this->triggerBeforeCreationEvent();
        $operation = $this->getAddOperation()->setServer($this->server);
        $this->connection->execute($operation);
        $this->triggerAfterCreationEvent($operation);
    }
300090
public function process()
    {
        $rule = $this->getComponent();
        $context = $this->getContext();

        $processor = $this->getRuleProcessorFactory()->createProcessor($rule);
        $processor->setState($context);
        $processor->process();

        $this->trace($rule->getQtiClassName());
    }
267855
public function process($processors = null)
    {
        if ($processors === null) { // Use the default and registered processors.
            $processors = self::processors();
        }
        if (is_array($processors) === false && is_callable($processors)) {
            $processors = [$processors];
        }
        foreach ($processors as $processor) {
            $processor($this);
        }
    }
364457
public function Run($data = null) {
        $this->ProcessFrameworkData();

        $ApplicationList = \Puzzlout\Framework\GeneratorEngine\Constants\ApplicationList::Init()->GetList();
        foreach ($ApplicationList as $Appname) {
            $this->ProcessApplicationData($Appname);
        }
    }
878372
public static void run(Process process) {
    try {
      LOG.info("Starting {}.", process);
      process.start();
      LOG.info("Stopping {}.", process);
      System.exit(0);
    } catch (Throwable t) {
      LOG.error("Uncaught exception while running {}, stopping it and exiting.", process, t);
      try {
        process.stop();
      } catch (Throwable t2) {
        // continue to exit
        LOG.error("Uncaught exception while stopping {}, simply exiting.", process, t2);
      }
      System.exit(-1);
    }
  }
414476
public function process(): void
    {
        try {
            $this->queue = msg_get_queue(ftok(__FILE__, 't'));
            $this->catchSignal();
            $this->initWorkerManager();
            $this->main();
        } catch (\Exception $e) {
            $this->logger->error('main() throw an exception, cleanup and exit', [
                'class' => get_class($this),
                'exception' => $e,
            ]);

            $this->cleanup(SIGTERM);
        }
    }
457663
public function run()
    {
        $this->call(SetupSeeder::class);
        $this->call(DefaultRoleSeeder::class);
        $this->call(DefaultSuperAdminUserSeeder::class);
        $this->call(DefaultAdminUserSeeder::class);
    }