title: AWS Lambda schedule - can we disable/enable schedule from within lambda?
body: <p>I have set of 3 AWS lambda functions (volume backup monitoring functions). I have created 3 functions so that each function will have only 1 loop , this way execution time (and billing) is less. Each lambda function puts call to next lambda function in SQS. I also have a lambda function that picks up message from queue and executes requested lambda function.</p>
  
  <p>My question is about scheduling. I can schedule Lambda1 to run at desired frequency (say every 10 minutes). How do I schedule the lambda that reads queue ? I can schedule to run it every n minutes but once queue is empty there is no need for its execution till end of day. Can I somehow disable the AWS lambda schedule from within lambda function ? If not - what are alternatives ?</p>