[ https://issues.apache.org/jira/browse/AIRFLOW-2811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16570457#comment-16570457 ]
ASF subversion and git services commented on AIRFLOW-2811: ---------------------------------------------------------- Commit 84a55f3e546cfbfd5f47302537444c8c8c4d2753 in incubator-airflow's branch refs/heads/master from [~sekikn] [ https://gitbox.apache.org/repos/asf?p=incubator-airflow.git;h=84a55f3 ] [AIRFLOW-2811] Fix scheduler_ops_metrics.py to work (#3653) This PR fixes timezone problem in scheduler_ops_metrics.py and makes its timeout configurable. > Fix scheduler_ops_metrics.py to work > ------------------------------------ > > Key: AIRFLOW-2811 > URL: https://issues.apache.org/jira/browse/AIRFLOW-2811 > Project: Apache Airflow > Issue Type: Bug > Reporter: Kengo Seki > Assignee: Kengo Seki > Priority: Major > > I tried to run {{scripts/perf/scheduler_ops_metrics.py}} but it failed with > the following error: > {code} > $ python scripts/perf/scheduler_ops_metrics.py > (snip) > Traceback (most recent call last): > File "scripts/perf/scheduler_ops_metrics.py", line 192, in <module> > main() > File "scripts/perf/scheduler_ops_metrics.py", line 188, in main > job.run() > File "/home/sekikn/dev/incubator-airflow/airflow/jobs.py", line 202, in run > self._execute() > File "/home/sekikn/dev/incubator-airflow/airflow/jobs.py", line 1584, in > _execute > self._execute_helper(processor_manager) > File "/home/sekikn/dev/incubator-airflow/airflow/jobs.py", line 1714, in > _execute_helper > self.heartbeat() > File "scripts/perf/scheduler_ops_metrics.py", line 121, in heartbeat > for dag in dags for task in dag.tasks]) > TypeError: can't subtract offset-naive and offset-aware datetimes > {code} > Also, it'd be nice if {{MAX_RUNTIME_SECS}} were configurable, since the > default value (6 seconds) is too short for all TaskInstances to finish in my > environment. -- This message was sent by Atlassian JIRA (v7.6.3#76005)