简体   繁体   中英

How to know the time a ECS Scheduled Task started?

I have a question about ECS Scheduled Task.

When I use ECS Scheduled Task scheduled by cron, how can I know the time a task started.

ECS Scheduled Tasks on Fargate takes a few minutes to launch. I need to use accurate time every 5 minutes each.

Is there like some useful environment variable?

Thanks.

Based on the comments.

A possible solution is through task metadata , especially:

PullStartedAt - The timestamp for when the first container image pull began.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM