@oryxcommerce/scheduler

1.1.1 • Public • Published

Oryx scheduler

const { postMessage } = require("@oryxcommerce/scheduler");

postMessage({
  data: {
    url: "https://google.com"
  },
  options: {
    delay: 'in 5 minutes',
    pubsub: {
      projectId: "PUBSUB PROJECT ID",
      topic: "hello"
    },
    bull: {
      queueName: "pubsub",
      redis: "redis://127.0.0.1:6379"
    }
  }
})
  .then(data => {
    console.log("DONE", data);
  })
  .catch(err => {
    console.log(err);
  });


Readme

Keywords

none

Package Sidebar

Install

npm i @oryxcommerce/scheduler

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

4.61 kB

Total Files

4

Last publish

Collaborators

  • phnz