ajmath / serverless-offline-scheduler

MIT License
96 stars 40 forks source link

stage is ignored #35

Closed zoellner closed 4 years ago

zoellner commented 4 years ago

I'm running the scheduler with sls schedule --stage local but get an error Error: Command failed: serverless invoke local --function SchedulerFunction --data {"schedule":"every-minute"} and before that some errors about it not being able to populate a few variables. However, those variables shouldn't matter in the local stage. When I manually run serverless invoke local --function SchedulerFunction --data {"schedule":"every-minute"} I get the same error, however if I run serverless invoke local --stage local --function SchedulerFunction --data {"schedule":"every-minute"} i.e. with my custom stage passed through, the function runs fine.

ajmath commented 4 years ago

Thanks for reporting. This should be fixed in #40 which is published in 0.4.1

tomusiaka commented 4 years ago

FYI npm still shows 0.4.0 as the most recent version. Any plan on when 0.4.1 will be available?

ajmath commented 4 years ago

I think I mistakenly mentioned the wrong version number on my previous comment. It was fixed in 0.4.0. However, 0.4.1 which includes another fix was just published.

tomusiaka commented 4 years ago

Awesome. Thanks.