Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Human-readable "every *" style intervals are still broken #29

Closed
ChrisEdgington opened this issue Aug 20, 2020 · 3 comments
Closed

Human-readable "every *" style intervals are still broken #29

ChrisEdgington opened this issue Aug 20, 2020 · 3 comments

Comments

@ChrisEdgington
Copy link

This should produce two jobs that run every 2 seconds. The job with the interval "every 2 seconds" only runs once. I was using bree 3.0.1 for testing.

const Bree = require('bree')

const taskman = new Bree({
    jobs: [
        { name: 'Worker 1', path: worker_1, interval: '2s' },
        { name: 'Worker 2', path: worker_2, interval: 'every 2 seconds' },
    ]
})

function worker_1() {
    console.log('worker_1 working ...')
}

function worker_2() {
    console.log('worker_2 working ...')
}

taskman.start()
@niftylettuce
Copy link
Contributor

Thanks for the heads up, will look at this ASAP unless @shadowgate15 gets to it before myself.

@niftylettuce
Copy link
Contributor

I got it figured out, will release shortly.

niftylettuce added a commit to breejs/later that referenced this issue Aug 21, 2020
@niftylettuce
Copy link
Contributor

Please upgrade to v3.1.0 as these issues are fixed. I have also published an npm deprecation notice for older versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants