Hacker News new | ask | show | jobs
by lambtron 935 days ago
hey, andy from the deno team here. we're really excited to land this. happy to answer any questions or pass questions along to the team!
6 comments

Why on earth would you copy Cron's incomprehensible syntax? You're writing code in a statically typed language! You can make a nice type checked API that actually is understandable without having to use one of the many many crontab generator UIs.

Crazy API design!

Edit: seems like there is a WIP typed API but I still have no idea why you would lead with the terrible one...

Is the spikiness of cron schedules going to cause you operational problems? You're going to end up with a _lot_ of jobs scheduled at "0 0 * * *".
Yes, we're anticipating more spiky workloads because of this. Deno Deploy is already designed to handle spikes, but we also have a few additional mitigations in place for Cron. For example, we will limit concurrent dispatches for the same project/user/organization, which may slightly delay the execution of specific cron tasks.
Charge 25% more for every 0 in the scheduling expression, problem solved :-)
Or add a default randomness factor that makes it run within a certain time (like 60s or 5m) of the target, perhaps with an additional charge to run at the exact time if people have that requirement.
I've been looking for something like this! Is it possible to run rclone to send Google Drive documents to an S3 compatible endpoint? (~20GB of files)
how does it works on self-hosted environment?
We're gathering more feedback for supporting self-hosted cron environment. Can you describe how you would use it?
Any plans for an SQL db service?
we've gotten a bunch of interest for this and the team is discussing it :)
Personally I would stay within your niche and focus on documentation, guides, and outreach to convert more people to your stack. A few simple but very reliable easy solutions is better than a lot of not great solutions.
use sqld (libsql)?
is there an API to receive the state of this and/or other cron jobs?
Not currently, but this is on the roadmap