g41797/queue-beanstalkd

Yii3 Beanstalkd 队列适配器 - 简单、快速的工作队列

v0.0.3 2024-07-14 10:29 UTC

This package is auto-updated.

Last update: 2024-09-14 11:04:04 UTC


README

tests

描述

Yii3 Beanstalkd 队列适配器是 Beanstalkd 的适配器,属于 Yii3 队列适配器家族。

适配器的实现基于 enqueue/pheanstalk 库。

要求

  • PHP 8.2 或更高版本。

安装

可以使用 composer 安装此包。

composer require g41797/queue-beanstalkd

通用用法

配置

默认配置

[
    'host' => '127.0.0.1',  // IP or hostname of the target server
    'port' => 11300,         // TCP/IP port of the target server
]

限制

作业状态

作业状态

// Push a job into the queue and get a message ID.
$id = $queue->push(new SomeJob());

// Get job status.
$status = $queue->status($id);

不支持。

许可证

Yii3 Beanstalkd 队列适配器是自由软件。它按照 BSD 许可证的条款发布。请参阅 LICENSE 获取更多信息。