Closed noam09 closed 3 years ago
Thank you for the issue. This looks like an invalid Cron expression, is that right?
If updating to v3 makes the component functionally better, do you want to run with this in a PR and get back to us after?
Thank you for the issue. This looks like an invalid Cron expression, is that right?
Exactly.
If updating to v3 makes the component functionally better, do you want to run with this in a PR and get back to us after?
I'd be happy to take a look and see if it's something I can take on during my free time. I'll submit a PR if I think I have a working solution.
Thanks. See how you go with it and let us know if you need help or have specific questions? We are available on Slack for Q&A.
/msg: slack
-- Join Slack to connect with the community https://docs.openfaas.com/community
/set title: Update cron package to v3
I've also pinged @viveksyngh to take a look at the upgrade to v3 of the cron package.
My actions before raising this issue
Expected Behaviour
Deploying a function with the following cron
schedule
annotation should be ignored bycron-connector
sincecron.Parse
should return an error:Current Behavior
Deploying a function using the following specs:
Causes
cron-connector
to freeze.Possible Solution
Use
robfig/cron
v3 instead of v2: https://github.com/robfig/cron#upgrading-to-v3-june-2019cron
v3 fixes this:cron
v2 doesn't handle this case properly:Steps to Reproduce (for bugs)
arkade install cron-connector
cron-connector
Deployment's Pods freeze.