airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (AIRFLOW-3125) Add monitoring on Task Instance creation rate
Date Fri, 28 Sep 2018 17:08:00 GMT


ASF GitHub Bot commented on AIRFLOW-3125:

feng-tao closed pull request #3966: [AIRFLOW-3125] Monitor Task Instances creation rates

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/airflow/ b/airflow/
index e4a50bc476..9d1d64ee73 100755
--- a/airflow/
+++ b/airflow/
@@ -5282,6 +5282,9 @@ def verify_integrity(self, session=None):
             if task.task_id not in task_ids:
+                Stats.incr(
+                    "task_instance_created-{}".format(task.__class__.__name__),
+                    1, 1)
                 ti = TaskInstance(task, self.execution_date)


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> Add monitoring on Task Instance creation rate
> ---------------------------------------------
>                 Key: AIRFLOW-3125
>                 URL:
>             Project: Apache Airflow
>          Issue Type: Improvement
>            Reporter: Mingye Xia
>            Assignee: Mingye Xia
>            Priority: Major
> Monitoring on Task Instance creation rate can give us some visibility on how much workload
we are putting on Airflow. It can be used for resource allocation in the long run (i.e. to
determine when we should scale up workers) and and debugging in scenarios like creation rate
for certain types of Task Instances spike.

This message was sent by Atlassian JIRA

View raw message