vojtabiberle/queue-runner

PHP中用于在服务器上运行后台作业的简单守护进程。使用MongoDB作为作业描述的消息队列。

1.0.6 2015-01-29 17:47 UTC

This package is auto-updated.

Last update: 2024-09-15 01:45:41 UTC


README

从Mongo队列运行任务/脚本的简单守护进程。

安装

使用以下方式安装项目

composer create-project vojtabiberle/queue-runner

将支持/etc中的内容复制到etc中,并设置一切(简单的ini文件和systemd目标)。

将systemd目标添加到启动后运行的列表中。

systemctl daemon-reload #to reload systemd - systemd will notice new target
systemctl start queuerunner #start service
systemctl enable queuerunner #start service after boot

未来计划

  • 添加对更多数据库适配器的更好支持
  • 添加对jeremeamia/super_closure的支持 - 可以在后台运行super_closure并对其进行规划