Skip to content

removing humanize.naturaldelta() for task output duration#988

Merged
Allda merged 1 commit into
mainfrom
update_task_time_output
Jul 10, 2026
Merged

removing humanize.naturaldelta() for task output duration#988
Allda merged 1 commit into
mainfrom
update_task_time_output

Conversation

@acornett21

Copy link
Copy Markdown
Contributor

...to ensure long-running tasks no longer output "an hour" when they actually run longer then an hour. This should prevent requests to increase timeouts past 1hr, which has already been done.

Merge Request Checklists

@acornett21 acornett21 requested a review from Allda July 9, 2026 20:49
@acornett21 acornett21 force-pushed the update_task_time_output branch from 07a39e3 to 7df155e Compare July 9, 2026 20:55
Comment thread operatorcert/tekton.py
import json
from typing import Any, Dict

import humanize

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want this to be removed, please also remove the dependency from the Python package using poetry. This is the only place where this library is used.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Allda I've updated the dependencies. Do you think change and display format makes more sense, and is easier to troubleshoot issues?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this change seems fine if it helps you to clarify things.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm open to other ideas, if there are better libs, but logging an hour for things that are over that doesn't make sense to me. Then if something is 1.5 hours would get logged as two hours, which seems even more confusing.

…long-running tasks no longer output "an hour" when they actually run longer then an hour. This should prevent requests to increase timeouts past 1hr, which has already been done.

Signed-off-by: Adam D. Cornett <adc@redhat.com>
@acornett21 acornett21 force-pushed the update_task_time_output branch from 7df155e to 2a1a337 Compare July 10, 2026 13:44
@Allda Allda merged commit 13fd36c into main Jul 10, 2026
12 checks passed
@Allda Allda deleted the update_task_time_output branch July 10, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants