-
Is it already possible to add a scheduled event for cloudflare workers with hono ? https://developers.cloudflare.com/workers/runtime-apis/scheduled-event/ |
Beta Was this translation helpful? Give feedback.
Answered by
yusukebe
May 10, 2023
Replies: 1 comment
-
Hi @Nytrm You can create a worker with a scheduled event and a Hono app like this: const app = new Hono()
//...
export default {
fetch: app.fetch,
async scheduled(event, env, ctx) {
ctx.waitUntil(doSomeTaskOnASchedule())
},
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Nytrm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @Nytrm
You can create a worker with a scheduled event and a Hono app like this: