CRON Jobs Explained and an Example put in Production in 5 minutes!
HTML-код
- Опубликовано: 6 авг 2024
- CRON jobs are one of the many concepts that newer and less experienced devs simply never hear about. They are really useful, but are rarely taught (in my experience). Today I built and hosted a cron job to Railway.
Railway CLI: docs.railway.app/develop/cli
Node-CRON: www.npmjs.com/package/node-cron
Twitter: / benjamin41902
timestamps
0:00 explanation
0:44 example
4:30 deployment - Наука
you saved my mental health with a video that was only 5 minutes long. You don't know how much I thank you!
Thank you so much, really clear explained and nice examples.
try to zoom in so everyone can see the code
good job
Helpful! Thank You!
Great explanation. It was easy to grasp. God Bless!
great explanation
Thank you for this!
i misunderstood cron, I conflated it with a product or specific service, not a concept that gets used in all sorts of things. thanks for the video.
Same, took me a long time to figure out what people were actually referring to lol
One thing I'm wondering about is, depending on what function is being run, could this get expensive?
I just came from another video where the guy mentioned that he hosted his on DB in a VPS, and to facilitate DB backup, he ran a cron job at the end of every day to store a snapshot of his database in an S3 bucket.
So I guess you would want a really clear understanding of the compute price of whatever cron job you were running, right?
this was so easy
what about use cron in a cluster enviroment with two nodes?
When I try to edit after inputting crontab -e, no Text Editor comes up. I see the code in something called LXTerminal. How do I edit from here? My Raspberry Pi has a Text Editor. Do I have to copy and paste it into that? Or maybe it is open in some Editor and I just have to figure out which one and what the commands are? Thanks!
next time maybe you can zoom in a bit. so we will be able to enjoy this precious info.
How to do this in sveltekit
vercel.com/blog/cron-jobs
How do people not know of cron? Basic unix concept lol. Ive known about it since before i started to program lol.
Also bruh, u dont need a library for this when actual deployment platforms like k8s or lambdas do it for u
Wow look how smart you are. Some of us aren't as experienced as you are. Many of us have not worked with UNIX. You lack basic social skills. I would never dream of blasting you over all of the things that I know, that you don't know. Fix yourself dude.