You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/10/21 15:46:40 UTC

[GitHub] [airflow] mjpieters opened a new pull request #11723: Re-introduce refresh_from_db

mjpieters opened a new pull request #11723:
URL: https://github.com/apache/airflow/pull/11723


   The run context (logging context) accesses task instance attributes via the log_filename_template configuration.
   
   Closes #11717.


----------------------------------------------------------------
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.

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



[GitHub] [airflow] turbaszek commented on a change in pull request #11723: Re-introduce refresh_from_db

Posted by GitBox <gi...@apache.org>.
turbaszek commented on a change in pull request #11723:
URL: https://github.com/apache/airflow/pull/11723#discussion_r509511736



##########
File path: airflow/cli/commands/task_command.py
##########
@@ -171,6 +171,7 @@ def task_run(args, dag=None):
 
     task = dag.get_task(task_id=args.task_id)
     ti = TaskInstance(task, args.execution_date)
+    ti.refresh_from_db()

Review comment:
       Probably this will increase number of queries, so we may need to adjust tests




----------------------------------------------------------------
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.

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



[GitHub] [airflow] ashb merged pull request #11723: Re-introduce refresh_from_db

Posted by GitBox <gi...@apache.org>.
ashb merged pull request #11723:
URL: https://github.com/apache/airflow/pull/11723


   


----------------------------------------------------------------
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.

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