Skip to content

Getting warning when using sql store #12

Description

@kybarg
import Queue from 'better-queue'
import SQLStore from 'better-queue-sql'

const options = {
  store: new SQLStore({ path: './queue.db.sqlite' }),
}

const queue = new Queue((input, cb) => {
  setTimeout(() => { cb(null, input) }, 2000)
}, options)

Console:

(node:4464) Warning: a promise was created in a handler but was not returned from it, see http://goo.gl/rRqMUw
    at Function.Promise.attempt.Promise.try (E:\Projects\reactkiosk\node_modules\bluebird\js\release\method.js:29:9)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions