schibsted-tech-polska/svd-scheduler-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

schibsted-tech-polska/svd-scheduler-bundle

最新稳定版本:1.1.2

Composer 安装命令:

composer require schibsted-tech-polska/svd-scheduler-bundle

包简介

Scheduler Bundle

README 文档

README

Configuration

svd_scheduler:
    job_provider: 
    	name: mongo
    processes_limit: 5
    worker_interval: 1
    clock_interval: 60

You can use as provider mongo or redis.

Parameter worker_interval is optional. It sets how long worker should sleep between iterations. Default value is 1, it represents 1 second. You can also use float as value. It is the same with clock_interval but it is set to 60 as default`.

Mongo

This provider use MongoClient to communicate to MongoDB, to configure it add following parameters to your configuration

svd_scheduler:
    job_provider: 
        name: mongo
        config:
            auth: false
            collection: job
            database: dbname
            host: localhost
            password: ~
            port: 27017
            username: root

Redis

Redis provider use Predis library to connect to redis.

Configuration:

svd_scheduler:
    job_provider:
        name: redis
        config:
            scheme: tcp
            host: 127.0.0.1
            port: 6379
            var_prefix: db:

If you want to see whole list of config parameters, go to:

https://github.com/nrk/predis/wiki/Connection-Parameters

We added also option var_prefix to set prefix for all redis variables for project, so you can use the same redis database for several applications.

Usage

To manage scheduler we provide command line tools.

app/console job:insert [-c|--comment[="..."]] expression cmd
app/console job:update [-E|--expression[="..."]] [-C|--cmd[="..."]] [-c|--comment[="..."]] id
app/console job:delete id
app/console job:list

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 15
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-11