breejs / bree

Bree is a Node.js and JavaScript job task scheduler with worker threads, cron, Date, and human syntax. Built for @ladjs, @forwardemail, @spamscanner, @cabinjs.
https://jobscheduler.net
MIT License
3.06k stars 79 forks source link

same job file different para meters #39

Closed marcpar closed 4 years ago

marcpar commented 4 years ago

hello is is possbile to have

jobs:[{ name: "jobA", interval: 15, workerData:{ test: "taska" }, name: "jobA", interval: 15, workerData:{ test: "taskb" }, }]

niftylettuce commented 4 years ago

yeah, just do name: "jobA" and name: "jobB" but also pass a path of path: "/path/to/same-job.js"