Back

How to cron function with specified end point

  • 0
  • Self Hosted
  • Functions
  • Web
  • Cloud
Suiii
21 Jan, 2025, 17:33

I have function built with hono. support like / , /data, /data/2222. I want to schedule triggger for specific event like /data. orrr event better /data/2222 . is this possible

TL;DR
Developers are seeking help on how to set up a cron function with a specified endpoint. One developer shared a solution using Hono to keep the function warm, providing a GitHub link for reference. The issue involves scheduling a trigger for a specific event like `/data` or `/data/2222`.
Kenny
21 Jan, 2025, 17:36

I did something like this with Hono to handle a cron to keep the function warm.

https://github.com/dishwasher-detergent/screenshot/blob/main/functions/screenshot/src/pages/keepWarm.ts

it’s probably not as encompassing as you need but maybe it’s an idea?

Suiii
21 Jan, 2025, 17:37

and how to schedule with specified route

Suiii
21 Jan, 2025, 17:39

acutallly, my code is same as you, i copied

Kenny
21 Jan, 2025, 17:42

Hmm not sure I understand what you’re asking, sorry.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more