amazon-web-servicesaws-glue

AWS Schedule a GLUE Every 10 Minutes


I am looking at scheduling a Glue Notebook Every 10 mins .

cron(0/10 * * * ? *) & cron(*/10 * * * *)

I am getting an error Must be a valid cron expression. I have tried few other permutation combinations.

Ideally I would like an example to run a cron job every 10 mins for 4 days

Thanks


Solution

  • AWS Glue uses the following cron expression format:

    cron(Minutes Hours Day-of-month Month Day-of-week Year)
    

    You can try something like this:

    cron(0/10 * ? * MON-THU *)
    
    1. Minute: Every 10 minutes → 0/10

    2. Hour: Every hour → *

    3. Day of month: Any → ?

    4. Month: Every month → *

    5. Day of week: Choose 4 days, e.g., Monday to Thursday → MON-THU

    The documentation gives you more detailed explanation and some examples.

    enter image description here