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 Respuestas
1
Respuesta aceptada

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
EXPERTO
Uri
respondido hace 8 meses
profile picture
EXPERTO
revisado hace 8 meses
profile pictureAWS
EXPERTO
revisado hace 8 meses
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
EXPERTO
respondido hace 8 meses
profile pictureAWS
EXPERTO
revisado hace 8 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas