diff options
| author | Alex <zuedev@gmail.com> | 2025-03-23 12:36:47 +0000 |
|---|---|---|
| committer | Alex <zuedev@gmail.com> | 2025-03-23 12:36:47 +0000 |
| commit | 931d18bbae8982403415a01af16908e70390b106 (patch) | |
| tree | f305192e341722d871c8710ed7a0c3d6367b59dc /source | |
| parent | 84d756dc249703b77540373d6e2dcaba54bc754c (diff) | |
| download | zue.dev-931d18bbae8982403415a01af16908e70390b106.tar zue.dev-931d18bbae8982403415a01af16908e70390b106.tar.gz zue.dev-931d18bbae8982403415a01af16908e70390b106.tar.bz2 zue.dev-931d18bbae8982403415a01af16908e70390b106.tar.xz zue.dev-931d18bbae8982403415a01af16908e70390b106.zip | |
feat(router): add scheduled event handler for triggering tasks
Diffstat (limited to 'source')
| -rw-r--r-- | source/index.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source/index.js b/source/index.js index b72fc71..2fbb0d5 100644 --- a/source/index.js +++ b/source/index.js @@ -99,6 +99,20 @@ export default { async email(message, environment, context) { message.forward("alex@zue.dev"); }, + + /* + Scheduled event handler, this function will be called whenever a scheduled event is triggered. + The function will perform a task and return a response based on the task outcome. + + @param {Event} event - the incoming event object + @param {Environment} environment - the environment object + @param {Context} context - the context object + + @returns {void} + */ + async scheduled(event, environment, context) { + console.log("Scheduled event triggered!"); + }, }; /* |
