定制 studentjason/laravel-async-queue 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

studentjason/laravel-async-queue

最新稳定版本:v0.3.0

Composer 安装命令:

composer require studentjason/laravel-async-queue

包简介

Async Queue Driver for Laravel/Oracle (Push to background)

README 文档

README

Push a function/closure to the background.

Just like the 'sync' driver, this is not a real queue driver. It is always fired immediatly. The only difference is that the closure is sent to the background without waiting for the response. This package is more usable as an alternative for running incidental tasks in the background, without setting up a 'real' queue driver.

Note: If you are coming from 0.1.0 (or dev-master), you will need to run the migrations, since the new versions uses a database to store the queue.

Install

Require the latest version of this package with Composer

composer require studentjason/laravel-async-queue

Add the Service Provider to the providers array in config/app.php

'Barryvdh\Queue\AsyncServiceProvider',

You need to run the migrations for this package

$ php artisan migrate --package="barryvdh/laravel-async-queue"

Or publish them, so they are copied to your regular migrations

$ php artisan migrate:publish barryvdh/laravel-async-queue

You should now be able to use the async driver in config/queue.php

'default' => 'async',

'connections' => array(
    ...
    'async' => array(
        'driver' => 'async',
    ),
    ...
}

By default, php is used as the binary path to PHP. You can change this by adding the binary option to the queue config. You can also add extra arguments (for HHVM for example)

'connections' => array(
    ...
    'async' => array(
        'driver' => 'async',
        'binary' => 'php',
        'binary_args' => '',
    ),
    ...
}

It should work the same as the sync driver, so no need to run a queue listener. Downside is that you cannot actually queue or plan things. Queue::later() is also fired directly, but just runs sleep($delay) in background.. For more info see http://laravel.com/docs/queues

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-12-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固