diff --git a/serverless.yml b/serverless.yml index 8e00b99..713dca4 100644 --- a/serverless.yml +++ b/serverless.yml @@ -31,3 +31,7 @@ functions: archiveMessages: handler: lib/functions/archiveMessages.archiveMessages timeout: 240 + events: + - schedule: + rate: cron(0 2 * * ? *) + enabled: true