Kengo Seki created AIRFLOW-2811:
-----------------------------------
Summary: 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
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)