cron icon indicating copy to clipboard operation
cron copied to clipboard

Exposing System.Cron.Schedule.forkJob

Open igrep opened this issue 4 years ago • 1 comments

I know this package is just "data structure and parser" by definition, but found the scheduling feature is useful. So I want to reuse it for one of my applications which parses the schedule specification in a different format. In such a use case, addJob, runSchedule, etc are unnecessary: calling forkJob directly with Jobs parsed by the application is sufficient and more efficient. Can you expose System.Cron.Schedule.forkJob?

igrep avatar Mar 10 '20 03:03 igrep

That seems reasonable. I'm swamped, so I'll accept an MR if you want to go ahead and expose that.

MichaelXavier avatar Mar 24 '20 17:03 MichaelXavier

I could really use this function, too.

I'd like to be able to write an alternative to execSchedule that doesn't just print errors to stdout and keep running. To do that, I need to be able to call forkJob.

mauke avatar Jun 21 '23 08:06 mauke

Looks fixed by https://github.com/MichaelXavier/cron/commit/d9193309bd06b04607898212f9c477af4894c021

igrep avatar Jan 23 '24 12:01 igrep