Closed pinguxx closed 4 years ago
After looking at the code i found that this works
const Bree = require('bree');
const later = require('@breejs/later');
var s = later.parse.cron('* * * * *');
const bree = new Bree({
cronValidate: {},
jobs: [{
name: 'test1',
cron : s
}]
});
bree.start();
Two problems
I assume that changing this piece of code may fix the problem
if (result.isValid()) {
const schedule = later.schedule(
later.parse.cron(
job.cron,
boolean(
typeof job.hasSeconds === 'undefined'
? this.config.hasSeconds
: job.hasSeconds
)
)
);
So the schedule is correct and not functions, but i dont know later
so not sure change it to what :P
Taking a look, sec
Ok, release inbound, one moment.
v3.2.0 released
seems to be working now :D Thanks for the quick fix
Can somebody give me a simple example, im trying to use bree with a cron, but it just exit and nothing happens
job/test1