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.

已提问 8 个月前645 查看次数
2 回答
1
已接受的回答

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
专家
Uri
已回答 8 个月前
profile picture
专家
已审核 8 个月前
profile pictureAWS
专家
已审核 8 个月前
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
专家
已回答 8 个月前
profile pictureAWS
专家
已审核 8 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则