Set GlueJob Schedule at 45 minutes interval

0

I'm using Glue to process data and want to schedule the job to run every 45 minutes using Glue Schedule with this cron expression: 0/45 * * * ? *.

The expected time of running may adhere to this pattern: 8:00 => 8:45 => 9:30 => 10:15 => ...

But the actual time running is out of expectance like this: 8:00 => 8:45 => 9:00 => 9:45 => ...

Can you provide some help here? Thanks in advance.

2 Antworten
1
Akzeptierte Antwort

Cron jobs does not support this pattern. Either create 3 different cron jobs (as indicated by @Riku_Kobayashi), or use EventBridge Scheduler with rate (45 minutes) and a Glue job as the target.

profile pictureAWS
EXPERTE
Uri
beantwortet vor 8 Monaten
profile picture
EXPERTE
überprüft vor 8 Monaten
profile pictureAWS
EXPERTE
überprüft vor 8 Monaten
1

Hello.

"0/45 * * * ? *" will be a cron that runs at 0 and 45 minutes every hour.
If you want it to run every 45 minutes, I think you'll need to make it three jobs.
I think that what you want to do probably cannot be configured with just one cron, so I think you will need three crons as shown below.

*/45 */3 * * ? *
30 1-22/3 * * ? *
15 2-23/3 * * ? *
profile picture
EXPERTE
beantwortet vor 8 Monaten
profile pictureAWS
EXPERTE
überprüft vor 8 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen