You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[feat] getting future execution timeline/schedule for jobs #80
Hi Is it possible to easily get a list of dates/times all jobs or a specific job will be executed next?
Please see below some proposed syntax and use cases/outputs:
bree.getSchedule()// outputs the earliest (1) upcoming job>>[{name: "job_3457",scheduled: "2021-01-23T13:02:58.838Z"}]
bree.getSchedule({job: ["job_6573","job_6573"]})// outputs the earliest (1) upcoming job for each "job_6573" and "job_6573". >>[{name: "job_3457",scheduled: "2021-01-23T13:02:58.838Z"},{name: "job_6573",scheduled: "2021-01-23T13:14:53.177Z"},]
bree.getSchedule({job: ["job_6573","job_3457"],count: 2})// outputs the earliest (2) upcoming jobs for each "job_6573" and "job_3457". >>[{name: "job_3457",scheduled: "2021-01-23T13:02:58.838Z"},{name: "job_6573",scheduled: "2021-01-23T13:14:53.177Z"},{name: "job_3457",scheduled: "2021-01-24T13:02:58.838Z"},{name: "job_6573",scheduled: "2021-01-27T13:14:53.177Z"},]
bree.getSchedule({dateStart: "2021-01-23T12:00:00.000Z",dateEnd: "2021-01-29T12:00:00.000Z"})// returns all jobs scheduled between specified dates>>[{name: "job_3457",scheduled: "2021-01-23T13:02:58.838Z"},{name: "job_6573",scheduled: "2021-01-23T13:14:53.177Z"},{name: "job_3457",scheduled: "2021-01-24T13:02:58.838Z"},{name: "job_3457",scheduled: "2021-01-25T13:02:58.838Z"},{name: "job_3457",scheduled: "2021-01-26T13:02:58.838Z"},{name: "job_3457",scheduled: "2021-01-27T13:02:58.838Z"},{name: "job_6573",scheduled: "2021-01-27T13:14:53.177Z"},{name: "job_3457",scheduled: "2021-01-28T13:02:58.838Z"},];
bree.getSchedule({job: ["job_6573"],dateStart: "2021-01-23T12:00:00.000Z",dateEnd: "2021-01-29T12:00:00.000Z"})// returns all jobs for "job_6573" scheduled between specified dates>>[{name: "job_6573",scheduled: "2021-01-23T13:14:53.177Z"},{name: "job_6573",scheduled: "2021-01-27T13:14:53.177Z"},];
changed the title [-](question) getting future execution timeline/schedule for jobs[/-][+](feat) getting future execution timeline/schedule for jobs[/+]on Jan 23, 2021
changed the title [-](feat) getting future execution timeline/schedule for jobs[/-][+][feat] getting future execution timeline/schedule for jobs[/+]on Mar 20, 2021
Activity
[-](question) getting future execution timeline/schedule for jobs[/-][+](feat) getting future execution timeline/schedule for jobs[/+][-](feat) getting future execution timeline/schedule for jobs[/-][+][feat] getting future execution timeline/schedule for jobs[/+]shadowgate15 commentedon Mar 20, 2021
A PR would be welcome for this.
DynamiteC commentedon Nov 9, 2021
Use of Cron Parser can help us out? Using their feature of next and previous.
shadowgate15 commentedon Nov 9, 2021
latercan get next/previous, which is how we schedule all of the intervals. It is just a functionality that needs to be written.DynamiteC commentedon Nov 10, 2021
Can i help?
shadowgate15 commentedon Nov 10, 2021
Please do! We are always open to reviewing PR's.
niftylettuce commentedon Jan 17, 2022
PR welcome @DynamiteC!