@abdatta/bulls-eye 中文文档教程

发布于 4年前 浏览 23 项目主页 更新于 3年前

Bulls Eye logo

一个反应式管理面板,用于监控 bull 队列,使用套接字进行实时更新!

Installation

npm i -g @abdatta/bulls-eye

创建一个具有您的 bull 队列配置的以下格式的 json 文件(例如 config.json)。

/* config.json */
{
    "<some-host-name>": [
        {
            "name": "<queue-name>",
            "url": "<redis-url>(optional)",
            "options": { <bull-queue-options> }
        },
        {
          ...
        }
    ],
    "<another-host-name>": [
        ...
    ]
}

这里:

  • <some-host-name> can be any string, helpful for namespacing same named queues from different machines
  • <queue-name>, <redis-url> and {<bull-queue-options>} are the same params that you provide to bull when creating your queue using: new bull(name, url?, options?)

现在只需在 config.json 文件所在的目录中打开终端并执行:

bulls-eye --config config.json --port 4869

就是这样! 现在转到 localhost:4869,您可以看到您的作业和队列! :smile:

Screenshots

  • 队列中的作业列表 SS1

  • 特定工作的详细信息 SS2

Bulls Eye logo

A reactive admin panel for monitoring bull queues, using sockets for realtime updates!

Installation

npm i -g @abdatta/bulls-eye

Create a json file (say config.json) of the following format having your bull queue configarations.

/* config.json */
{
    "<some-host-name>": [
        {
            "name": "<queue-name>",
            "url": "<redis-url>(optional)",
            "options": { <bull-queue-options> }
        },
        {
          ...
        }
    ],
    "<another-host-name>": [
        ...
    ]
}

Here:

  • <some-host-name> can be any string, helpful for namespacing same named queues from different machines
  • <queue-name>, <redis-url> and {<bull-queue-options>} are the same params that you provide to bull when creating your queue using: new bull(name, url?, options?)

Now simply open the terminal in the directory where your config.json file is and execute:

bulls-eye --config config.json --port 4869

That's it! Now go to localhost:4869 and you can see your jobs and queues! :smile:

Screenshots

  • List of jobs in a queue SS1

  • Details of a particular job SS2

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文