2017 © Pedro PelĂĄez
 

bundle cronjob-bundle

Bundle to write efficient and threadable cronjobs.

image

basecom/cronjob-bundle

Bundle to write efficient and threadable cronjobs.

  • Monday, November 13, 2017
  • by basecom
  • Repository
  • 21 Watchers
  • 4 Stars
  • 839 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 12 Versions
  • 0 % Grown

The README.md

basecom/CronjobBundle

License informations: LGPL, (*1)

This bundle was made, to create powerfull and efficient cronjobs wich also can use multithreading (requires the php PCNTL-module)., (*2)

Example

``` php <?php, (*3)

namespace basecom\ExampleBundle\Command;, (*4)

use basecom\CronjobBundle\Command\CronjobCommand; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface;, (*5)

class ExampleCommand extends CronjobCommand { protected function configure() { parent::configure(); $this->setName('basecom:example'); ->setDescription('Shows the easy usage of this nice CronjobBundle'); }, (*6)

protected function executeCronjob(InputInterface $input, OutputInterface $output, $loopcount, $preloopResult = null)
{
    $output->writeln("Hello World!");
}

}, (*7)

In this basic configuration, the cronjob will run about 50 seconds and between each executeCronjob()-call will be a pause of one second.

If you trigger this command, you will see the "Hello World!"-output about 50 times.

Crontab handling
----------------
You can use the bundle for cronjob handling. Then you kann use the `bsc:cronjob:produce` for a worker to handle your comands via config.

basecom_cronjob: cronjobs: - {schedule: '* 5-23 * * *', script: 'app/console app:my:command --no-debug > /dev/null 2>&1'} ``` And add the Script to your crontab to run 5 minutes for example app/console bsc:cronjob:produce --runtime=255 --no-debug > /dev/null 2>&1 or add the command to your worker config., (*8)

Documentation

The Versions

13/11 2017

dev-master

9999999-dev https://github.com/basecom/CronjobBundle

Bundle to write efficient and threadable cronjobs.

  Sources   Download

LGPL

The Requires

 

by Maximilian Beckers

command cronjob threadable

13/11 2017

dev-develop

dev-develop https://github.com/basecom/CronjobBundle

Bundle to write efficient and threadable cronjobs.

  Sources   Download

LGPL

The Requires

 

by Maximilian Beckers

command cronjob threadable

13/11 2017

2.6.2

2.6.2.0 https://github.com/basecom/CronjobBundle

Bundle to write efficient and threadable cronjobs.

  Sources   Download

LGPL

The Requires

 

by Maximilian Beckers

command cronjob threadable

06/11 2017

2.6.1

2.6.1.0 https://github.com/basecom/CronjobBundle

Bundle to write efficient and threadable cronjobs.

  Sources   Download

LGPL

The Requires

 

command cronjob threadable

06/11 2017

2.6.0

2.6.0.0 https://github.com/basecom/CronjobBundle

Bundle to write efficient and threadable cronjobs.

  Sources   Download

LGPL

The Requires

 

command cronjob threadable

17/05 2016

2.5.0

2.5.0.0 https://github.com/basecom/CronjobBundle

Bundle to write efficient and threadable cronjobs.

  Sources   Download

LGPL

The Requires

 

command cronjob threadable

03/01 2014

2.4.0

2.4.0.0 https://github.com/basecom/CronjobBundle

Bundle to write efficient and threadable cronjobs.

  Sources   Download

LGPL

The Requires

 

command cronjob threadable

22/11 2013

2.3.1

2.3.1.0 https://github.com/basecom/CronjobBundle

Bundle to write efficient and threadable cronjobs.

  Sources   Download

LGPL

The Requires

 

command cronjob threadable

20/11 2013

2.3.0

2.3.0.0 https://github.com/basecom/CronjobBundle

Bundle to write efficient and threadable cronjobs.

  Sources   Download

LGPL

The Requires

 

command cronjob threadable

10/04 2013

1.2.0

1.2.0.0 https://github.com/basecom/CronjobBundle

Bundle to write efficient and threadable cronjobs.

  Sources   Download

LGPL

The Requires

 

command cronjob threadable

05/04 2013

2.0.0

2.0.0.0 https://github.com/basecom/CronjobBundle

Bundle to write efficient and threadable cronjobs.

  Sources   Download

LGPL

The Requires

 

command cronjob threadable

21/11 2012

v1.1

1.1.0.0 https://github.com/basecom/CronjobBundle

Bundle to write efficient and threadable cronjobs.

  Sources   Download

LGPL

The Requires

 

command cronjob threadable