Download the PHP package out001a/tasque without Composer

On this page you can find all versions of the php package out001a/tasque. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package tasque

tasque Build Status

定时优先级任务处理

背景

设计开发这个系统的初衷是为了满足实际业务中对各种异步延时任务的处理需求:

  1. 定时
    任务可以在指定的时间自动执行
  2. 重试
    任务执行失败时,需要根据指定的规则在特定的时间间隔后重试,直到执行成功或规则结束为止
  3. 时间要求是秒级

架构

Architecture

使用

简介

包含三个相对独立的组件:进程、任务和优先级队列。

  1. 进程

    进程组件在src/Process目录下,在我之前的一个小项目php-process的基础上做了些改进,可以满足在生产环境中使用。

    用法如下:

  2. 任务

    src/Task目录下,实现了一个抽象的基础任务类和任务需要重试时应抛出的异常。业务开发时应该基于抽象类实现自己的任务处理逻辑。

  3. 优先级队列

    src/Tasque.php,基于redis实现了入队、出队等操作。出队按照队列元素的score值从小到大进行。

单元测试

TODO

  1. redis断线重连处理
  2. 支持平滑重启
  3. inotify监控指定文件的变化并自动重启进程
  4. 加入日志组件
  5. 使用环境变量控制各种参数
  6. Web控制台

All versions of tasque with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
ext-pcntl Version *
ext-sysvmsg Version *
ext-redis Version >=3.1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package out001a/tasque contains the following files

Loading the files please wait ....