3 ms·
This sounds great, if i could trust it to get it right 100% of the time.
by Jleagle 2y ago
This sounds great, if i could trust it to get it right 100% of the time.
- simonw 2y agoWith the right harness around it you could trust it. Set it up so that it takes your input, generates the cron expression, then uses a deterministic cron library to spit out a summary of what that expression does plus a list of next upcoming instances. That should give you all the information you need to determine if it got the right expression.
- encoderer 2y agoYou think it would work to just pipe that description and next occurrences and ask an llm if it matches the intended prompt?
- simonw 2y agoNo, that still leaves a small probability of something weird happening - and since it's a small probability you might not ever spot it in your own testing. In this case I think it's better to run known, deterministic code that can turn a crontab into a clear explanation.
- krupan 2y agoWow. The things people will do to avoid learning cron syntax