Rykian / clockwork

A scheduler process to replace cron.
MIT License
544 stars 66 forks source link

Validate if proc arity (argument count) - must be 1 #57

Open brentsnook opened 5 years ago

brentsnook commented 5 years ago

At the moment if an :if argument is supplied that has an arity other than one, clockwork will fail late when trying to run the event. This recently cost us a bit of time to troubleshoot.

It would be great to validate as much as possible at startup so clockwork fails fast and problems can be found sooner than when the event is configured to run.

Another approach would be to check the proc arity and only pass the argument if required.