简体   繁体   中英

difference between current timestamp and last modified timestamp of an S3 file using Glue python

Using python in AWS glue, I need to check if the files in an s3 location was modified in last 2 hours and based on that I have to run a job. I have tried few methods but in vain. Let me know if anyone would be able to help with this.

You can use the job bookmark feature for this use-case. This keeps track of the last modified timestamp of files and only processes those that have not been processed yet.

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