Skip to content

Commit

Permalink
Seqera Platform CLI: handle failed tasks (#2286)
Browse files Browse the repository at this point in the history
* check for null complete

* [automated] Update CHANGELOG.md

---------

Co-authored-by: MultiQC Bot <multiqc-bot@seqera.io>
Co-authored-by: Vlad Savelyev <vladislav.sav@gmail.com>
  • Loading branch information
3 people committed Feb 2, 2024
1 parent 02389ad commit 98c5bd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- Heatmap: check if value is numeric when calculating min and max ([#2276](https://github.com/MultiQC/MultiQC/pull/2276))
- Use alternative method to walk directory using pathlib ([#2277](https://github.com/MultiQC/MultiQC/pull/2277))
- Export `config.output_dir` in MegaQC JSON ([#2287](https://github.com/MultiQC/MultiQC/pull/2287))
- Seqera Platform CLI: handle failed tasks ([#2286](https://github.com/MultiQC/MultiQC/pull/2286))

### New modules

Expand Down
2 changes: 1 addition & 1 deletion multiqc/modules/seqera_cli/seqera_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def _parse_data(self, d):
# "start" and "complete" are time stamps like time stamps like 2023-10-22T14:39:01Z
# parse them with a library, take the difference "complete" - "start" to get the
# wall time, and convert the wall time it to a human-readable format.
if "start" in d and "complete" in d:
if "start" in d and "complete" in d and d["complete"] is not None:
start = dt.datetime.strptime(d["start"], "%Y-%m-%dT%H:%M:%SZ")
complete = dt.datetime.strptime(d["complete"], "%Y-%m-%dT%H:%M:%SZ")
wall_time = complete - start
Expand Down

0 comments on commit 98c5bd3

Please sign in to comment.