2017 © Pedro Peláez
 

symfony-bundle nightly-task-bundle

A bundle to group all your nightly task under one command

image

dekalee/nightly-task-bundle

A bundle to group all your nightly task under one command

  • Tuesday, January 9, 2018
  • by gignonje
  • Repository
  • 5 Watchers
  • 0 Stars
  • 2,360 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 30 % Grown

The README.md

Dekalee/NightlyTaskBundle

Scrutinizer Code Quality Code Coverage Latest Stable Version Total Downloads License, (*1)

This bundle will launch all the configured nightly task., (*2)

Installation

Use composer to install the bundle, (*3)

    $ composer require dekalee/nightly-task-bundle

If you are not using symfony4 you should activate the bundle in your AppKernel.php file., (*4)

    new Dekalee\NightlyTaskBundle\DekaleeNightlyTaskBundle(),

Usage

List commands

To list all the commands register as nightly task command run, (*5)

    $ ./bin/console dekalee:nightly:list

Launch commands

To launch the nigthly tasks, run the command :, (*6)

    $ ./bin/console dekalee:nightly:tasks

Define a command as nightly tasks

With an interface

To define a command as a nigthly task, it should implement the Dekalee\NightlyTaskBundle\Command\NightlyCommandInterface interface., (*7)

This interface will expose two methods:, (*8)

  • getPriority will define the order in which the command should be run. Higher priority wins.
  • isEssential will determine if the nighty task command should fail if this particular command fails.

With a tag

It is also possible to transform a command in a nightly task by tagging the service directly., (*9)

   tags:
       - { name: console.command }
       - { name: dekalee_nightly.task.strategy, priority: 100 }

Your service should be defined as a command and then defined as a nightly task with a priority., (*10)

It is not possible to make those kind of command essential., (*11)

The Versions

09/01 2018

dev-master

9999999-dev

A bundle to group all your nightly task under one command

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nicolas Thal

09/01 2018

v1.0.0

1.0.0.0

A bundle to group all your nightly task under one command

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nicolas Thal