LionelZhao28 opened a new pull request #19039:
URL: https://github.com/apache/airflow/pull/19039


   recreate the PR (origin: https://github.com/apache/airflow/pull/17502)
   Why I commit this change:
   
   When checking the airflow features, I found that the dag run_id is generated 
using the UTC time, but actually, it is not convenient for us to use the UTC 
time because we are using local time.
   For example, I am in Beijing now, I ran a DAG at 19:01, the default run_id 
is manual__2021-09-08T11:01:02.022226+08:00, but after a few hours, I want to 
find this run, I have to parse the local time to UTC time to get the specific 
dag_run. If the run_id is generated using local time, the run_id will be 
manual__2021-09-08T19:01:02.022226+08:00, I can easily find this dag_run.
   How do I change:
   
   Added a config localize_dag_run_id in the core config and the default value 
is False. It takes no effect if the user doesn't care about the dag run_id 
format. If the users who just like me want to use the local time to generate 
the run_id, they can set it to True
   Result:
   
   image


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to