7 ms·
Any chance there will be cron jobs for functions? Right now, I'm using AppEngine just to schedule a function to run.
by meeks 7y ago
Any chance there will be cron jobs for functions? Right now, I'm using AppEngine just to schedule a function to run.
- asciimike 7y agoCheck out Cloud Scheduler (https://cloud.google.com/scheduler/ https://cloud.google.com/scheduler/) which can target an arbitrary HTTP URL, and will support authenticated push to securely target Cloud Functions and Cloud Run (I think this is going to public beta this week).
- stewart27 7y ago+1 You can also set up Cloud Scheduler to push to Pub/Sub, which can trigger your function. This is helpful if you don't want your function to be available via a public HTTPS endpoint.
- hn_throwaway_99 7y agoNote to Firebase team: I use exactly this (a Cloud Scheduler job that pushes to a pub/sub topic, and then set a Firebase function that runs on a topic trigger) to schedule functions, but would be really nice if I could just create a triggered cron function like this: functions.cron.schedule('0 0 * * *').onSchedule(...) or something like that. Even if it behind the scenes it just did exactly what I'm doing manually now, I see so many questions about cron-triggered functions that it would save a ton of people time searching for what the best route is to take.
- asciimike 7y agoWe are working on this right now, so stay tuned :)
- jganetsk 7y agoCron jobs in knative: https://www.knative.dev/docs/eventing/samples/cronjob-source/ https://www.knative.dev/docs/eventing/samples/cronjob-source...