Search code examples
amazon-web-servicesaws-glue

Getting the Job Run Datetime in a Scheduled Glue Job


Is there a way to get run date time of a glue job that is scheduled (using CRON) inside the job? Like a default argument that passes the time and date of the job run?

args = getResolvedOptions(sys.argv, ["JOB_NAME", "START_TIME?"])

Solution

  • There is no default argument for that, you would have to pass it manually through the job parameters.

    Here is an overview about the default parameters.