abc/job-server-bundle 问题修复 & 功能扩展

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

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

abc/job-server-bundle

Composer 安装命令:

composer require abc/job-server-bundle

包简介

A symfony bundle to manage asynchronous distributed processing of stateful jobs

README 文档

README

Build Status

A symfony bundle for asynchronous distributed job processing using php-enqueue as transport layer.

Note: This project is still experimental!

Features

  • Asynchronous distributed processing of
    • Job: a single job
    • Batch: multiple jobs that are processed in parallel
    • Sequence: multiple jobs processed in sequential order
    • Free composition of Job, Sequence, and Batch
  • Status information about jobs
  • Cancellation and restarting of jobs
  • Cron jobs (requires AbcSchedulerBundle 2.x)
  • JSON REST-Api & PHP client library
  • OpenApi documentation

Demo

You can find a demo here.

Installation

composer install abc/job-server-bundle

Getting Started

Prerequisites

  • EnqueueBundle is configured with a transport layer

Steps

  1. In case you configured a transport with a key different that default you have to configure this transport also for the AbcJobServerBundle

    abc_job_server:
        transport: my_transport_name
  2. Create database and database schema

    bin/console doctrine:database:create
    bin/console doctrine:schema:create
  3. Start the command that processes replies from workers

    bin/console abc:process:reply someReplyQueue
  4. Create an application that will consume jobs using the AbcJobWorkerBundle that will process jobs.

Configuration Reference

abc_job_server:

    # the enqueue transport name
    transport: default
    
    # whether to enable the cronjob component
    cronjob:
        enabled: true
    
    # whether to enable the endpoints to cleanup jobs, and cronjobs
    cleanup:
        enabled: true

Commands

Command abc:broker:setup

The command abc:broker:setup declares queues at the broker for all registered routes.

bin/console abc:broker:setup --help

Command abc:reply:process

The command abc:reply:process processes job replies from queues, updates job information and schedules dependant jobs

bin/console abc:reply:process --help

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-09-25