You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Kaxil Naik (JIRA)" <ji...@apache.org> on 2019/01/09 20:48:00 UTC

[jira] [Updated] (AIRFLOW-2811) Fix scheduler_ops_metrics.py to work

     [ https://issues.apache.org/jira/browse/AIRFLOW-2811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kaxil Naik updated AIRFLOW-2811:
--------------------------------
    Fix Version/s:     (was: 2.0.0)
                   1.10.2

> 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
>             Fix For: 1.10.2
>
>
> 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)