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 Answers
1
Accepted Answer

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
EXPERT
Uri
answered 7 months ago
profile picture
EXPERT
reviewed 7 months ago
profile pictureAWS
EXPERT
reviewed 7 months ago
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
EXPERT
answered 7 months ago
profile pictureAWS
EXPERT
reviewed 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions