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
  • НаукаНаука

Комментарии • 18

  • @lucas0yo
    @lucas0yo 4 месяца назад +4

    you saved my mental health with a video that was only 5 minutes long. You don't know how much I thank you!

  • @rheavictor7
    @rheavictor7 5 месяцев назад +3

    Thank you so much, really clear explained and nice examples.

  • @IbnShaalan
    @IbnShaalan Год назад +8

    try to zoom in so everyone can see the code
    good job

  • @m.talalmajeed8780
    @m.talalmajeed8780 Месяц назад

    Helpful! Thank You!

  • @joshuaberrios
    @joshuaberrios 2 месяца назад +1

    Great explanation. It was easy to grasp. God Bless!

  • @mrman880
    @mrman880 Год назад +1

    great explanation

  • @Anarchy_OW
    @Anarchy_OW Год назад

    Thank you for this!

  • @andrew3068
    @andrew3068 Год назад +2

    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.

    • @bmdavis419
      @bmdavis419  Год назад

      Same, took me a long time to figure out what people were actually referring to lol

  • @simplehonestmusic2261
    @simplehonestmusic2261 11 дней назад

    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?

  • @parkerrex
    @parkerrex 10 месяцев назад +2

    this was so easy

  • @antoniofabricio9276
    @antoniofabricio9276 Год назад

    what about use cron in a cluster enviroment with two nodes?

  • @somers2020
    @somers2020 9 месяцев назад

    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!

  • @CoderSineNomine
    @CoderSineNomine Год назад

    next time maybe you can zoom in a bit. so we will be able to enjoy this precious info.

  • @andrewthomas3947
    @andrewthomas3947 5 месяцев назад +1

    How to do this in sveltekit

    • @bmdavis419
      @bmdavis419  5 месяцев назад

      vercel.com/blog/cron-jobs

  • @1998goodboy
    @1998goodboy Год назад +2

    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

    • @jerbear7952
      @jerbear7952 8 месяцев назад

      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.