承接 dekalee/nightly-task-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dekalee/nightly-task-bundle

Composer 安装命令:

composer require dekalee/nightly-task-bundle

包简介

A bundle to group all your nightly task under one command

README 文档

README

Scrutinizer Code Quality Code Coverage Latest Stable Version Total Downloads License

This bundle will launch all the configured nightly task.

Installation

Use composer to install the bundle

    $ composer require dekalee/nightly-task-bundle

If you are not using symfony4 you should activate the bundle in your AppKernel.php file.

    new Dekalee\NightlyTaskBundle\DekaleeNightlyTaskBundle(),

Usage

List commands

To list all the commands register as nightly task command run

    $ ./bin/console dekalee:nightly:list

Launch commands

To launch the nigthly tasks, run the command :

    $ ./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.

This interface will expose two methods:

  • 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.

   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.

It is not possible to make those kind of command essential.

统计信息

  • 总下载量: 6.03k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 1

GitHub 信息

  • Stars: 0
  • Watchers: 6
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-12-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固