You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/10/21 13:39:00 UTC

[jira] [Commented] (AIRFLOW-6590) Use batch db operations in jobs

    [ https://issues.apache.org/jira/browse/AIRFLOW-6590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17218297#comment-17218297 ] 

ASF GitHub Bot commented on AIRFLOW-6590:
-----------------------------------------

mjpieters commented on a change in pull request #7370:
URL: https://github.com/apache/airflow/pull/7370#discussion_r509290320



##########
File path: airflow/cli/commands/task_command.py
##########
@@ -169,8 +169,6 @@ 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:
       This actually broke task logging for multiple tries, see 11717, because setting up logging _looks at the attributes of the TI_, via the `[logging].log_filename_template` setting.

##########
File path: airflow/cli/commands/task_command.py
##########
@@ -169,8 +169,6 @@ 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:
       This actually broke task logging for multiple tries, see #11717, because setting up logging _looks at the attributes of the TI_, via the `[logging].log_filename_template` setting.




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


> Use batch db operations in jobs
> -------------------------------
>
>                 Key: AIRFLOW-6590
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-6590
>             Project: Apache Airflow
>          Issue Type: New Feature
>          Components: logging
>    Affects Versions: 2.0.0
>            Reporter: Tomasz Urbaszek
>            Assignee: Tomasz Urbaszek
>            Priority: Minor
>             Fix For: 2.0.0
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)