Definition at line 31 of file RunActiveJobsCommand.php.
◆ configure()
ILIAS\Cron\CLI\Commands\RunActiveJobsCommand::configure |
( |
| ) |
|
|
protected |
Definition at line 38 of file RunActiveJobsCommand.php.
38 : void
39 {
40 $this->setDescription('Runs cron jobs depending on the respective schedule');
41
42 $this->addArgument('user', InputArgument::REQUIRED, 'The ILIAS user the script is executed with');
43 $this->addArgument('client_id', InputArgument::REQUIRED, 'The ILIAS client_id');
44 }
◆ execute()
ILIAS\Cron\CLI\Commands\RunActiveJobsCommand::execute |
( |
InputInterface |
$input, |
|
|
OutputInterface |
$output |
|
) |
| |
|
protected |
Definition at line 46 of file RunActiveJobsCommand.php.
46 : int
47 {
48 $this->style = new SymfonyStyle($input, $output);
49
50 $cron = new \ILIAS\Cron\CLI\StartUp(
51 $input->getArgument('client_id'),
52 $input->getArgument('user')
53 );
54
55 try {
56 $cron->authenticate();
57
59
60 $this->style->success('Success');
61
62 return 0;
63 }
catch (\Throwable
$e) {
64 $this->style->error(
$e->getMessage());
65 $this->style->error(
$e->getTraceAsString());
66
67 return 1;
68 } finally {
70 }
71 }
withAuthenticated(InputInterface $input, OutputInterface $output)
References $cron, Vendor\Package\$e, and ILIAS\Cron\CLI\Commands\RunActiveJobsCommand\withAuthenticated().
◆ withAuthenticated()
ILIAS\Cron\CLI\Commands\RunActiveJobsCommand::withAuthenticated |
( |
InputInterface |
$input, |
|
|
OutputInterface |
$output |
|
) |
| |
|
private |
◆ $defaultName
ILIAS\Cron\CLI\Commands\RunActiveJobsCommand::$defaultName = 'run-jobs' |
|
staticprotected |
◆ $style
ILIAS\Cron\CLI\Commands\RunActiveJobsCommand::$style |
|
private |
The documentation for this class was generated from the following file: