Job start time timezone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2024 12:20 PM
It is mentionned in the documentation that the job.start_time is a value of time in UTC timezone but I wonder if it's always the case because as the start_time is in UTC timezone for a scheduled job, it is in local timezone when it is manually triggered. How to know in which context we are (triggered vs manual) or how to know the timezone of this time ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2024 01:50 PM
The job.start_time value in Databricks is indeed in UTC timezone as mentioned in the documentation. However, there is a distinction based on how the job is triggered. The trigger attribute will indicate whether the job was triggered manually or by a schedule.
- If the trigger attribute is set to SCHEDULED, the job.start_time is in UTC.
- If the trigger attribute is set to MANUAL, the job.start_time is in the local timezone of the user who triggered the job
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2024 06:56 AM
Thanks Mounika,
That's actually my understanding. And how to know whether the job was triggered manually or by schedule ? Is there a parameter with a dynamic value for that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2024 08:21 AM
To determine whether a Databricks job was triggered manually or by schedule, you can use the dynamic value reference {{job.trigger.type}}
. T

