serverless / serverless-openwhisk

Adds Apache OpenWhisk support to the Serverless Framework!
http://openwhisk.org/
MIT License
143 stars 47 forks source link

event scheduler failing to register trigger in openwhisk #180

Open dhongyt opened 5 years ago

dhongyt commented 5 years ago

Recently we are noticing a weird error when deploying our serverless functions into OpenWhisk.

We have functions that are on a cron schedule, which was running correctly until ~5 days back. All cron scheduled functions just stopped working. We started troubleshooting the issues and here is what we found.

When doing an sls deploy on our function, they are no longer being registered in the openwhisk/alarmsprovider container when it used to be registered. We do see that a trigger and a rule is created using the wsk cli but they are not triggered after a successful deployment.

Further testing, when we manually create a trigger and rule through the wsk cli, the trigger is fired correctly on schedule.

jthomas commented 5 years ago

Is this an instance of openwhisk you are running yourselves or a hosted service?

There hasn't been a new release of the framework plugin since May 2019, which makes me wonder why it would be an issue with the framework rather than the plaform itself? Do you have any more idea?

mluds commented 4 years ago

I am also experiencing this. See here:

https://github.com/serverless/serverless/issues/7132

It looks like trigger creation fails for some reason, though it works when I create the trigger manually, then reference it in the serverless.yml.