Please, could you create a option to disable the scheduled functions.
It could be a command line option like
--disableScheduledFunctions
It's is importante because I have some funcions that manipulate data and I don't want to run it every momment on dev time.
Today, I have 2 yml files to control it:
With this new options, this process could my simpler.
We faced the same issue.
As a workaround, we use the IS_OFFLINE env var to interrupt the scheduled functions.
exports.handler = () => {
if (process.env.IS_OFFLINE) return;
...
}
In order to avoid modifying function source, I'd also appreciate a way to disable scheduled functions from running for serverless-offline.
Most helpful comment
We faced the same issue.
As a workaround, we use the IS_OFFLINE env var to interrupt the scheduled functions.