# Cylc 8.2.1 report-timings error

**URL:** https://cylc.discourse.group/t/cylc-8-2-1-report-timings-error/765
**Category:** Cylc Support
**Created:** [September 27, 2023, 5:12pm UTC](https://cylc.discourse.group/t/cylc-8-2-1-report-timings-error/765 "2023-09-27T17:12:20Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![ejhyer](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/ejhyer/32/307_2.png) [@ejhyer](https://cylc.discourse.group/u/ejhyer)
#### Post date: [September 27, 2023, 5:12pm UTC](https://cylc.discourse.group/t/cylc-8-2-1-report-timings-error/765/1 "2023-09-27T17:12:20Z")

</div>

Below is the output from `cylc report-timings --debug` This case looks similar to ["report-timings": odd error after restart](https://cylc.discourse.group/t/report-timings-odd-error-after-restart/340) but this must be an edge case since that’s two years ago, and was using cylc-flow 7.8.3.

```auto
Traceback (most recent call last):
  File "/p/home/ehyer/src/conda/miniconda3/envs/cylc81test/bin/cylc", line 10, in <module>
    sys.exit(main())
  File "/p/home/ehyer/src/conda/miniconda3/envs/cylc81test/lib/python3.9/site-packages/cylc/flow/scripts/cylc.py", line 660, in main
    execute_cmd(command, *cmd_args)
  File "/p/home/ehyer/src/conda/miniconda3/envs/cylc81test/lib/python3.9/site-packages/cylc/flow/scripts/cylc.py", line 286, in execute_cmd
    entry_point.resolve()(*args)
  File "/p/home/ehyer/src/conda/miniconda3/envs/cylc81test/lib/python3.9/site-packages/cylc/flow/terminal.py", line 232, in wrapper
    wrapped_function(*wrapped_args, **wrapped_kwargs)
  File "/p/home/ehyer/src/conda/miniconda3/envs/cylc81test/lib/python3.9/site-packages/cylc/flow/scripts/report_timings.py", line 137, in main
    row_buf = format_rows(*dao.select_task_times())
  File "/p/home/ehyer/src/conda/miniconda3/envs/cylc81test/lib/python3.9/site-packages/cylc/flow/scripts/report_timings.py", line 158, in format_rows
    max_lengths = [
  File "/p/home/ehyer/src/conda/miniconda3/envs/cylc81test/lib/python3.9/site-packages/cylc/flow/scripts/report_timings.py", line 158, in <listcomp>
    max_lengths = [
  File "/p/home/ehyer/src/conda/miniconda3/envs/cylc81test/lib/python3.9/site-packages/cylc/flow/scripts/report_timings.py", line 161, in <genexpr>
    (max(len(r[i]) for r in rows) for i in range(len(header))),
  File "/p/home/ehyer/src/conda/miniconda3/envs/cylc81test/lib/python3.9/site-packages/cylc/flow/scripts/report_timings.py", line 161, in <genexpr>
    (max(len(r[i]) for r in rows) for i in range(len(header))),
TypeError: object of type 'NoneType' has no len()

```

---

<div class="post-metadata">

### Author: ![oliver.sanders](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/oliver.sanders/32/110_2.png) [@oliver.sanders](https://cylc.discourse.group/u/oliver.sanders)
#### Post date: [September 28, 2023, 9:07am UTC](https://cylc.discourse.group/t/cylc-8-2-1-report-timings-error/765/2 "2023-09-28T09:07:55Z")

</div>

Thanks for this report.

The `cylc report-timings` command is not being actively developed at present so may disappear in a future release unless there is community interest in maintaining it.

However, we do now have the new “analysis view” in the Cylc GUI which lists and plots task submit/run time quartiles. The analysis view is quite new and still under development with some new functionalities in the works. The data that powers the analysis view is available via the GraphQL API for use by scripts.

[https://cylc.github.io/cylc-doc/stable/html/reference/changes.html#analysis-view](https://cylc.github.io/cylc-doc/stable/html/reference/changes.html#analysis-view)

---

<div class="post-metadata">

### Author: ![funkapus](https://avatars.discourse-cdn.com/v4/letter/f/b19c9b/32.png) [@funkapus](https://cylc.discourse.group/u/funkapus)
#### Post date: [October 9, 2023, 12:29am UTC](https://cylc.discourse.group/t/cylc-8-2-1-report-timings-error/765/3 "2023-10-09T00:29:29Z")

</div>

> The `cylc report-timings` command is not being actively developed at present so may disappear in a future release unless there is community interest in maintaining it.

Hm, that’s a bummer. Our suite is set up to send a run summary email when the suite is about to end, which includes the output from `report-timings`. So I’d like to cast a vote for continuing to have this information available in some non-GUI fashion.

Thanks!

---

<div class="post-metadata">

### Author: ![oliver.sanders](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/oliver.sanders/32/110_2.png) [@oliver.sanders](https://cylc.discourse.group/u/oliver.sanders)
#### Post date: [October 9, 2023, 9:33am UTC](https://cylc.discourse.group/t/cylc-8-2-1-report-timings-error/765/4 "2023-10-09T09:33:52Z")

</div>

Hi,

Note the analysis view in the GUI can provide you a summary for a workflow either whilst it’s running or after it has stopped. It’s quite similar to the HTML summary table `report timings` writes.

The timings information will continue to be available via the GraphQL interface (along with any new fields added to support the analysis view) for consumption by other applications and scripts. We’re in the process of working out an easy system for CLI authentication to make it easier to get at this data outside of a browser.

If there’s interest in maintaining `report timings` we’d be happy to consider moving it into a Cylc plugin for a new lease of life.

---

<div class="post-metadata">

### Author: ![ejhyer](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/ejhyer/32/307_2.png) [@ejhyer](https://cylc.discourse.group/u/ejhyer)
#### Post date: [October 12, 2023, 12:25am UTC](https://cylc.discourse.group/t/cylc-8-2-1-report-timings-error/765/5 "2023-10-12T00:25:51Z")

</div>

Much love for the analysis view in the GUI! But I agree with @funkapus it’s best if we have some means to dump out this information as text.

---

<div class="post-metadata">

### Author: ![hilary.j.oliver](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/hilary.j.oliver/32/4_2.png) [@hilary.j.oliver](https://cylc.discourse.group/u/hilary.j.oliver)
#### Post date: [October 12, 2023, 10:30am UTC](https://cylc.discourse.group/t/cylc-8-2-1-report-timings-error/765/6 "2023-10-12T10:30:33Z")

</div>

@funkapus or @ejhyer - in that case, perhaps one of you would like to take over maintenance of `cylc report-timings` as a Cylc 8 plugin?

---

<div class="post-metadata">

### Author: ![funkapus](https://avatars.discourse-cdn.com/v4/letter/f/b19c9b/32.png) [@funkapus](https://cylc.discourse.group/u/funkapus)
#### Post date: [October 13, 2023, 7:33pm UTC](https://cylc.discourse.group/t/cylc-8-2-1-report-timings-error/765/7 "2023-10-13T19:33:39Z")

</div>

We’re still on Cylc 7, and probably will be for quite a while because the customer for our suite does not yet have concrete plans to move to Cylc 8. But when they do, that’s something I can definitely consider (and then I’ll feel less like a leech!).
