egg-agenda-tf

1.0.3 • Public • Published

egg-agenda-tf

此模块是在egg-agenda基础上进行修改,主要解决mongodb连接过程中警告问题,同时agenda模块升级到了3.0.0。

安装

npm install egg-agenda

配置

  • 在 config/plugin.js 中添加以下内容
exports.agenda = {
  enable: true,
  package: 'egg-agenda-tf',
};
  • 在 config/config.default.js 中添加以下内容
config.agenda = {
  client: {
    db: 'agenda',
    <!-- 可选参数 -->
    collection: 'agendaJob'
    options: {
      auto_reconnect: true
    }
  }
};

使用

具体使用方式请参考agenda

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i egg-agenda-tf

    Weekly Downloads

    5

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    2.55 kB

    Total Files

    4

    Last publish

    Collaborators

    • meguoe